#633157 Using wrong configuration file leads to data loss

Package:
fluxbox
Source:
fluxbox
Description:
Highly configurable and low resource X11 Window manager
Submitter:
Ulrich Eckhardt
Date:
2011-07-09 07:42:06 UTC
Severity:
normal
#633157#5
Date:
2011-07-09 07:12:28 UTC
From:
To:
I can tell fluxbox to use a different configuration file:

  $ fluxbox -help
  [...]
  -rc <string>                    use alternate resource file.
  [...]

This works to the extent that if I specify a different path, it will actually
use it. However, and that is inacceptable, inside the file which is
autogenerated if it doesn't exist, there are still references to my other
configuration:

  session.styleOverlay:   ~/.fluxbox/overlay
  session.keyFile:        /home/uli/.fluxbox/keys
  session.appsFile:       ~/.fluxbox/apps
  session.slitlistFile:   /home/uli/.fluxbox/slitlist
  session.styleFile:      /home/uli/.fluxbox/styles/Sn33z-mod

If I save anything in e.g. the apps file, which happens during normal WM
interaction, the configuration there is lost, although I specified a different
path exactly in order to avoid overwriting it.


Some more notes:
1. It looks weird that some paths above are absolute, while some are relative
to the homedir.
2. Fluxbox doesn't have a configuration file, but a configuration dir. The
commandline should honour that, i.e. not expect just a single init file but a
directory.
3. If I specify a path to a file that doesn't exist, I'd expect to either get
an error or that the file is created. This works to some extent, but if I
specify a file where the parent dir doesn't exist, I get errors on stdout
(most users won't see that) and fluxbox uses the default configuration from my
home dir, which again can lead to data loss.


Cheers!

Uli