Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move data (vs config information) into separate directory to respect XDG Base Directory Specification #3291

Closed
tillschaefer opened this issue Apr 3, 2019 · 4 comments

Comments

@tillschaefer
Copy link

  • [x ] I have searched open and closed issues for duplicates

Bug Description

The Linux build of Signal does save all data to ~/.config (does it use $XDG_CONFIG_HOME?). With respect to the XDG Base Directory Specification, the config file directory should be used in the same way as /etc in the FHS standard. Instead, Signal also uses it to store data such as attachments (pictures, etc) or messages. With respect to the XDG Base Directory Specification this kind of data should be stored in $XDG_DATA_HOME(default: ~/.local/share) or $XDG_CACHE_HOME (default: ~/.cache), where $XDG_DATA_HOME seems to be the appropriate location to me, since the data cannot be restored from remote.

I have stumbled across this behaviour since the directory ~/.config in my backup was growing very fast and a deeper look revealed that Signal was using about 99% of the disk space in this folder.

Operating System:
Linux

@scottnonnenberg-signal scottnonnenberg-signal changed the title Signal does not respect the XDG Base Directory Specification Move data (vs config information) into separate directory to respect XDG Base Directory Specification Apr 3, 2019
@behrmann
Copy link

Yes, I noticed this too recently, but I want to stress, that $XDG_CACHE_HOME would be the wrong place to put this data, as the cache is strictly for ephemeral data only, which Signal's data is most certainly not. The correct place to put this is under $XDG_DATA_HOME, which is ~/.local/share by default.

@Jonta
Copy link

Jonta commented Sep 8, 2021

Related: #4975

Which mentions electron/electron#8124

tl;dr: Somewhat an Electron-thing

@tillschaefer
Copy link
Author

@josh-signal I would like to argue, that this is no feature, but a violation of a very basic desktop application standard. Thus, in my opinion, this bug report should stay open and handled with higher priority than a forum discussion.

@thomaseizinger
Copy link

@josh-signal I would like to argue, that this is no feature, but a violation of a very basic desktop application standard. Thus, in my opinion, this bug report should stay open and handled with higher priority than a forum discussion.

#4975 tracks the same issue I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

6 participants