Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-08 Thread Dieter Plaetinck
On Fri, 7 Jan 2011 19:01:24 + Connor Lane Smith wrote: > dmenu tip now has an option in config.mk allowing you to specify the > path of dmenu_path's cache, either absolute or relative to $HOME. It > doesn't let you do anything involving environment variables, as true > XDG would require, but

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-07 Thread Bjartur Thorlacius
On 1/7/11, Connor Lane Smith wrote: > (Right now it doesn't actually mkdir -- is that desired?) Doing so at install makes sense to me. It's of course not desired at run time.

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-07 Thread Connor Lane Smith
dmenu tip now has an option in config.mk allowing you to specify the path of dmenu_path's cache, either absolute or relative to $HOME. It doesn't let you do anything involving environment variables, as true XDG would require, but you can at least make it dump the cache in a directory of your choosi

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Bjartur Thorlacius
On 1/2/11, anonymous wrote: > dmenu cache should be stored under $HOME because different users use > different $PATH. In my .profile I set > I like the notion of free-form $HOME, uncluttered of any autocreated files and standardized (as in known at build-time). Rather, each user should have subdi

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Sean Howard
You do both. Ideally you SSH into a machine running a NFS mounted home directory on your own notebook. Of course, in that case, you're likely not running dmenu, or even X. Or that's my experience, at least. On 4 January 2011 09:11, Anselm R Garbe wrote: > On 4 January 2011 14:56, Gregor Best wro

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Anselm R Garbe
On 4 January 2011 14:56, Gregor Best wrote: > On Tue, Jan 04, 2011 at 02:24:05PM +0100, Anselm R Garbe wrote: >> [...] >> Also I believe that nfs mounted $HOME dirs are not that widespread >> anymore and those who use this still should be able to change a flag >> in config.mk. >> [...] > > Practic

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Gregor Best
On Tue, Jan 04, 2011 at 02:24:05PM +0100, Anselm R Garbe wrote: > [...] > Also I believe that nfs mounted $HOME dirs are not that widespread > anymore and those who use this still should be able to change a flag > in config.mk. > [...] Practically every university uses network mounted home directo

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Anselm R Garbe
As I understand this discussion, having a config.mk flag for the cache file sounds best to me, then the end user can decide if he likes the default in $HOME/.dmenu_cache or somewhere else. Also I believe that nfs mounted $HOME dirs are not that widespread anymore and those who use this still shoul

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-04 Thread Ivan Štefanić
On 1/2/11, Džen wrote: > On 02/01/11 07:11pm, Moritz Wilhelmy wrote: >> Imagine different computers mounting home directories over NFS: probably >> not >> all of them have the same set of applications. As this is not the default >> case, >> the sysadmin on these machines should be able to edit dme

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Džen
On 02/01/11 07:11pm, Moritz Wilhelmy wrote: > Imagine different computers mounting home directories over NFS: probably not > all of them have the same set of applications. As this is not the default > case, > the sysadmin on these machines should be able to edit dmenu_run to fit his > needs. Have

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Moritz Wilhelmy
Excerpts from Džen's message of Sun Jan 02 18:56:53 +0100 2011: > On 02/01/11 08:01pm, anonymous wrote: > > dmenu cache should be stored under $HOME because different users use > > different $PATH. > I guess this is the main reason why the location of the dmenu cache file > shouldn't be changed --

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Džen
On 02/01/11 08:01pm, anonymous wrote: > dmenu cache should be stored under $HOME because different users use > different $PATH. I guess this is the main reason why the location of the dmenu cache file shouldn't be changed -- storing it outside $HOME doesn't make sense to me, it overcomplicates thin

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Moritz Wilhelmy
Excerpts from Bjartur Thorlacius's message of Sun Jan 02 18:01:34 +0100 2011: > > Maybe /var/tmp/ would be a better choice than /tmp? > Or you know, /var/cache? /tmp and /var/tmp are world-writable and sticky, /var/cache and /var/run are not. > For sockets, /var/run, which is always wiped on boot,

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread anonymous
On Sat, Jan 01, 2011 at 06:04:45PM +, Bjartur Thorlacius wrote: > On 12/30/10, Anselm R Garbe wrote: > > On 30 December 2010 20:47, Jon Raphaelson wrote: > >> Attached is a patch to dmenu_path which (if enabled in the config.mk) > >> changes the cache file location to be XDG Base Directory Sp

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Jacob Todd
$home/tmp

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Bjartur Thorlacius
Quoting > System programs that maintain transient UNIX-domain sockets must place them > in this directory. I don't even know what 'transient' means, but this seems to apply to X IPC sockets. On 1/2/11, Bjartur Thorlacius wrote:

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Bjartur Thorlacius
> Maybe /var/tmp/ would be a better choice than /tmp? Or you know, /var/cache? For sockets, /var/run, which is always wiped on boot, seems appropriate.

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Moritz Wilhelmy
Excerpts from Troels Henriksen's message of Sun Jan 02 12:29:19 +0100 2011: > /tmp is wiped on system reboot, while you might like your dmenu cache to > live a little longer than that. Not necessarily. This depends on your distribution. A few examples: Slackware doesn't purge it by default, debi

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Kurt H Maier
On Sun, Jan 2, 2011 at 6:29 AM, Troels Henriksen wrote: > Anselm R Garbe writes: >> On Sat, Jan 01, 2011 at 06:04:45PM +, Bjartur Thorlacius wrote: >>> I think storing cache files under $HOME is even odder. $HOME is quite >>> often accessed over a network. Storing it under /var seems saner. >

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-02 Thread Troels Henriksen
Anselm R Garbe writes: > On Sat, Jan 01, 2011 at 06:04:45PM +, Bjartur Thorlacius wrote: >> I think storing cache files under $HOME is even odder. $HOME is quite >> often accessed over a network. Storing it under /var seems saner. > > Or /tmp as it was in the earlier days. /tmp is wiped on sy

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-01 Thread Anselm R Garbe
On Sat, Jan 01, 2011 at 06:04:45PM +, Bjartur Thorlacius wrote: > On 12/30/10, Anselm R Garbe wrote: > > On 30 December 2010 20:47, Jon Raphaelson wrote: > >> Attached is a patch to dmenu_path which (if enabled in the config.mk) > >> changes the cache file location to be XDG Base Directory Sp

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2011-01-01 Thread Bjartur Thorlacius
On 12/30/10, Anselm R Garbe wrote: > On 30 December 2010 20:47, Jon Raphaelson wrote: >> Attached is a patch to dmenu_path which (if enabled in the config.mk) >> changes the cache file location to be XDG Base Directory Specification >> compliant. After enabling the change, the cache file will liv

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2010-12-30 Thread Anselm R Garbe
On 30 December 2010 20:47, Jon Raphaelson wrote: > Attached is a patch to dmenu_path which (if enabled in the config.mk) > changes the cache file location to be XDG Base Directory Specification > compliant. After enabling the change, the cache file will live at > $XDG_CACHE_HOME/dmenu/path.cache (

Re: [dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2010-12-30 Thread Troels Henriksen
Jon Raphaelson writes: > Hi all, > > Attached is a patch to dmenu_path which (if enabled in the config.mk) > changes the cache file location to be XDG Base Directory Specification > compliant. After enabling the change, the cache file will live at > $XDG_CACHE_HOME/dmenu/path.cache (or $HOME/.cac

[dev] [dmenu] Patch for XDG Base Directory specification of dmenu_path

2010-12-30 Thread Jon Raphaelson
Hi all, Attached is a patch to dmenu_path which (if enabled in the config.mk) changes the cache file location to be XDG Base Directory Specification compliant. After enabling the change, the cache file will live at $XDG_CACHE_HOME/dmenu/path.cache (or $HOME/.cache/dmenu/path.cache if $XDG_CACHE_HO