question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not save apps/cache/downloads etc in ~/.config

See original GitHub issue

On linux ~/.config/itch/ contains all kinds of stuff that is not configuration files.

Please follow proper conventions and save cache files in ~/.cache/ and data files in ~/.local/share.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:12
  • Comments:29

github_iconTop GitHub Comments

8reactions
fasterthanlimecommented, Feb 23, 2019

So, moving ~/.config/itch to ~/.local/share/itch seems like a good (achievable) first step?

It would:

  • Leave ~/.config alone
  • Not use any of the non-XDG dirs like ~/.local/lib, ~/.local/bin
  • Not solve ~/.itch, but, shrug

The process would be:

  • Existing installs are left alone
  • itch v25.5.0 would check for, mhh ~/.config/itch/db/butler.db - if it can find it, it’ll use ~/.config (legacy paths), if not, it’ll use ~/.local/share/itch (modern paths)
  • Users who want to reseat can just completely quit itch (Ctrl+Q), mv ~/.config/itch ~/.local/share/itch, start it up again, and voilà!

The only remaining file any of the tools would write to itch would be… ~/.config/itch/butler_creds, which is, well, actually used by butler to store your credentials. That doesn’t really belong in config either, maybe it could move to ~/.local/share/butler/credentials ?

(Please vote 👍 or 👎 using comment reactions - if you vote against, please explain)

7reactions
shunseicommented, Apr 21, 2017

Yes, there are multiple use cases this is interfering with.

  1. It should be possible to keep ~/.config/ under version control or back it up without backing up data files.
  2. It should be possible to free up disk space by cleaning up ~/.cache.
  3. It should be possible to use another partition for data files (eg. ~/.local/share).

And so on.

I don’t know anything about Electron, but sounds like it should not be using ~/.config. If it’s going to be a large dump of mixed-purpose files anyway, better move the directory elsewhere altogether (eg.~/.itch), although that would be just a workaround.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - app.config are not saving the values
When you build the application in Release mode only the <yourexe>.exe.config exists and will be updated. Your code will also add an extra...
Read more >
ConfigurationManager.Save does not! - MSDN - Microsoft
Save method does not seem to do anything. The example here is a console application that has the following app.config file.
Read more >
Best way to save application settings
What's the best way (and location) to store non-BLOB settings? On Windows, it seems acceptable to use the registry.
Read more >
video demonstration on how to save switch configuration files
If changes made to the running configuration do not have the desired effect and the running- config file has not yet been saved,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found