b3nj5m1n / xdg-ninja

A shell script which checks your $HOME for unwanted files and directories.
MIT License
2.53k stars 147 forks source link

~/GNUstep #266

Open ostrich opened 1 year ago

ostrich commented 1 year ago

Came across this one while running Window Maker.

The default user defaults dir for GNUstep apps is ~/GNUstep (how rude). This holds settings, but also holds icons and even potentially applications. So, imo, it should go in $XDG_DATA_HOME rather than $XDG_CONFIG_HOME.

Window Maker checks $WMAKER_USER_ROOT, so we can export WMAKER_USER_ROOT="$XDG_DATA_HOME"/GNUstep to take care of it.

However.

Based on the documentation here[1], GNUstep apps are supposed to check /etc/GNUstep/GNUstep.conf for GNUSTEP_USER_DEFAULTS_DIR (Window Maker does not do this). So, assuming this is accurate (and I did not test it), we will also need instructions to the effect of adding GNUSTEP_USER_DEFAULTS_DIR=$XDG_DATA_HOME/GNUstep to /etc/GNUstep/GNUstep.conf.

[1] Relevant section:

GNUSTEP_USER_DEFAULTS_DIR Name of directory for user defaults files. Always relative to the user's home directory except: On mswindows this may be set to be ':REGISTRY:' to have defaults stored in the windows registry rather than in the standard file format. On any system this may be set to ':INTERNAL:' to use only internal defaults domains (NSArgumentDomain, NSRegistrationDomain, and GSConfigDomain)."

flexagoon commented 9 months ago

Can you please test if the GNUSTEP_USER_DEFAULTS_DIR variable is necessary or if WMAKER_USER_ROOT is sufficient?

ostrich commented 9 months ago

Unfortunately I am no longer running WindowMaker or GNUstep. I do recall that WMAKER_USER_ROOT was not sufficient to keep ~/GNUstep from being created.