[openbox] _OB_CONFIG_FILE property

Dana Jansens dana at orodu.net
Thu May 13 21:37:39 EDT 2010


On 2010-05-13, at 6:41 PM, Eric Bohlman wrote:

> Is there any reason why this property is set only if a config file is specified on the command line? It would save a bunch of guesswork in utilities like OBApps or OBMenu if it were set even if one of the default config files were used.

If _OB_CONFIG_FILE is set, it specifies a file that is tried before all the defaults.  If it fails to load, then the file is looked for in the regular places, $XDG_CONFIG_HOME, and $XDG_CONFIG_PATH.  Setting it to whatever was read is not the same, this specifies the first location that will be read from when reconfiguring.  It seems pretty straightforward rather than guessing, and looking in multiple places will always be necessary, for instance when the user has no config and a global config has to be read.  Changes still need to be written in a different place (_OB_CONFIG_FILE, or in $XDG_CONFIG_HOME).

Dana


More information about the openbox mailing list