Skip to content

catfish creates an empty ~/.config directory when opened

I have XDG_CONFIG_HOME="$HOME/.local/config" and most xfce4-apps I've tested (thunar, xfce4-terminal, etc) respond correctly to it.

The issue I have is that when catfish is launched, it results in the creation of ~/config/catfish which is an empty directory. Changing catfish settings results in no file being created in that directory either but the settings are still being saved somewhere else.

Edit: The issue is caused by this line in CatfishSettings.py

DEFAULT_SETTINGS_FILE = os.path.join(os.getenv('HOME'),
                                     '.config/catfish/catfish.rc')

I tested changing it to this:

config_home = os.getenv('XDG_CONFIG_HOME', os.path.join(os.getenv('HOME'), '.config'))

DEFAULT_SETTINGS_FILE = os.path.join(config_home, 'catfish/catfish.rc')

And it worked! The ~/.config dir is no longer being created.

Edited by Samueru