Opened 12 years ago

Last modified 6 years ago

#2234 new bug

Folllow freedesktop specs for files created/stored by Deluge

Reported by: Calum Owned by:
Priority: trivial Milestone: 2.x
Component: Core Version: other (please specify)
Keywords: Cc:


It would be good if rather than dumping everything in config dir, we follow the Freedesktop specs:

  • XDG_DATA_HOME - user specific data files
    • state files
    • ssl dir
    • plugin eggs dir
  • XDG_CACHE_HOME - non-essential cached data
    • icons dir
    • blocklist cache
  • XDG_RUNTIME_DIR - non-essential runtime files
    • ipc dir
    • pid files
  • XDG_CONFIG_HOME - user specific configuration files
    • conf files

The only question mark is what .torrent files should be classified as.

Reference: Freedesktop

Change History (4)

comment:1 by Calum, 11 years ago

From duplicate #2366

The specification ensures that a pid file will not survive on a reboot or login/logout cycle. Thus, using $XDG_RUNTIME_DIR remedies this situation.

comment:3 by Calum, 7 years ago

Milestone: 2.0.x2.x

Milestone renamed

comment:4 by DjLegolas, 6 years ago

Aren't the .torrent files part of the user data?
Currently they are stored in the state directory, so why not leave them there?

Note: See TracTickets for help on using tickets.