Opened 13 years ago

Closed 9 years ago

#7399 closed Bug report (fixed)

configuration files in linux are not located according to the freedesktop guidelines — at Version 5

Reported by: Jonas Nyrén Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc:
Component version: Operating system type: Linux
Operating system version:

Description (last modified by Alexander Schuch)

Configuration files should be in $HOME/.config/package/ as per the freedesktop guidelines:
$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
See here: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html for more details.
I think this is a fairly easy task to do, and if everybody followed these guidelines we could maybe finally get rid of all these .dirs in the home directory.

Change History (5)

comment:1 by Eric Heintzmann, 12 years ago

Component: FileZilla ClientUnknown

comment:2 by Eric Heintzmann, 12 years ago

According to XDG Base directory specification:
User data should go into $XDG_DATA_HOME (which default to ~/.local/share),
user preferences should go into $XDG_CONFIG_HOME (which default to ~/.config)
and cached data should go to $XDG_CACHE_HOME (which default to ~/.cache).
More details at :
http://ploum.net/post/207-modify-your-application-to-use-xdg-folders
https://live.gnome.org/GnomeGoals/XDGConfigFolders

Full specification can be found at:
http://standards.freedesktop.org/basedir-spec/latest/

The Freedesktop.org XDG base directory specification have good de facto adoption.
It has been adopted by:

I think that Filezilla should use same locations than the vast majority of Desktop environment and applications.

There are real advantages of following this specification :

  • a lot less cluttered $HOME
  • Make backups a lot more safer and easier. Backuping your $XDG_DATA_HOME along with your files is enough (or just excluding $XDG_CACHE_HOME)
  • A lot easier to reset a default configuration if you want/need it (and without any risk to loose informations). Even for the software itself could choose to reset $XDG_CONFIG_HOME if needed.
  • Avoid some strange bugs that happens because you had a old version of some configuration file
  • A lot more of flexibility and portability because no path are hardcoded.

comment:3 by Alexander Schuch, 12 years ago

Component: UnknownFileZilla Client

comment:4 by Alexander Schuch, 11 years ago

For a related issue, see #7322.

comment:5 by Alexander Schuch, 9 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

Since FileZilla 3.8.1-rc1, XDG_CONFIG_HOME is honored.

Note: See TracTickets for help on using tickets.