Opened 7 years ago

Last modified 11 months ago

#2234 new bug

Folllow freedesktop specs for files created/stored by Deluge

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

Description

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 Changed 6 years ago by Cas

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 Changed 2 years ago by Cas

  • Milestone changed from 2.0.x to 2.x

Milestone renamed

comment:4 Changed 11 months ago by DjLegolas

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.