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

From: anonymous <p37sitdu_AT_lavabit.com>
Date: Sun, 2 Jan 2011 20:01:33 +0300

On Sat, Jan 01, 2011 at 06:04:45PM +0000, Bjartur Thorlacius wrote:
> On 12/30/10, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
> > On 30 December 2010 20:47, Jon Raphaelson <jonraphaelson_AT_gmail.com> 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 (or $HOME/.cache/dmenu/path.cache if
> >> $XDG_CACHE_HOME is not set), rather than in the home directory at
> >> ~/.dmenu_cache.
> >> This patch relies on libxdg-basedir [2] being installed.
> >
> > I think using some pseudo-directory standard and library to retrieve
> > the location of a cache file is quite odd.
> >
> I think storing cache files under $HOME is even odder. $HOME is quite
> often accessed over a network. Storing it under /var seems saner.
>
dmenu cache should be stored under $HOME because different users use
different $PATH. In my .profile I set

export XDG_CONFIG_HOME="$HOME/etc"
export XDG_CACHE_HOME="$HOME/var/cache"

In dmenu_path.c I set

#define CACHE "var/cache/dmenu"

BTW under $HOME/lib I store various databases like browser bookmarks,
calendars and other things like that.
Received on Sun Jan 02 2011 - 18:01:33 CET

This archive was generated by hypermail 2.2.0 : Sun Jan 02 2011 - 18:36:03 CET