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

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Tue, 4 Jan 2011 22:00:51 +0000

On 1/2/11, anonymous <p37sitdu_AT_lavabit.com> 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
subdirectories of various sustem directories. If that seems like making user
deletion a PITA, sites could also standardize on /home/$USER/lib, doc, etc.

The point of the XDG Base Directory standard is to allow both. IMO, this is
fugly, and cpp constants should be used instead. This may seem sane, as
you need to get $USER from the environment anyway, but if you wreck your
system and download documentation using uzbl as root (with minimal env)
you may get files ment for XDG Base Directories linked in $PWD, which just
might be /.

> export XDG_CONFIG_HOME="$HOME/etc"
> export XDG_CACHE_HOME="$HOME/var/cache"
>
If you do that for all users, and keep their data in the same namespace,
$HOME, you risk them accidentally creating files with reserved names, or
modifying specially named files as free formatted.
Received on Tue Jan 04 2011 - 23:00:51 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 04 2011 - 23:12:02 CET