It would be great if esniper followed the XDG Base Directory Specification. Config should go to $XDG_CONFIG_HOME/esniper/config and other files to $XDG_DATA_HOME/esniper by default. esniper could still have a fallback to load in the current fashion ($HOME/.esniper).
More on the specs here: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Ticket moved from /p/esniper/bugs/711/
esniper is not a desktop or X-Windows program, so why should it care for standards related to freedesktop.org or X Desktop Group?
esniper is intended to be run in the background or on a router.
You can use cmd line option -c $XDG_CONFIG_HOME/esniper/config to specify a config file as you like and specify the auctionfile as cmd line arg.
You cannot prevent esniper from reading a file .esniper in the same place where the auction file is located, so make sure there is no .esniper.
See the option and file processing in esniper.c
You can easily create a shell script wrapper that looks for configuration and data files where you want them to be and use the command line arguments to pass the files your script has found.
Sorry for the delay, I did not receive a notification for this.
The spec is not intended only for desktop or X-Windows, but also for command line only programs.
http://gk2.sk/the-ugly-duckling-called-xdg_config_home/
Sure, a wrapper is always possible, but it is a workaround all the users wanting to follow this spec have to set.
A common way to fix this is to use $XDG_CONFIG_HOME / $XDG_DATA_HOME if they are set, and then to fall back to ~/.esniper if not.
or at least environments variables $ESNIPER_CONFIG $ESNIPER_DATA
You are the first user asking for this, so I dont see "all the users wanting this".
How do you run esniper?
(I always use a wrapper script to run esniper anyway for specifying command line options and redirecting output to a log file.)
What's the problem with
esniper -c $XDG_CONFIG_HOME/esniper/config $XDG_DATA_HOME/esniper/some-auction-fileor similar?You can provide a patch if this feature is important to you.