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
Do not save apps/cache/downloads etc in ~/.config #1184
Comments
|
Electron apps treat Is the problem for you that you're backing up |
|
Yes, there are multiple use cases this is interfering with.
And so on. I don't know anything about Electron, but sounds like it should not be using |
|
@shunsei just to clarify (my initial response had a rather bland tone): I completely sympathize with your request. let's look at practical fixes:
However, there is an So, it would be possible for the itch app to set different directories - but I'm not sure how to proceed in a backwards-compatible manner. It has been using One possible way to do it would be:
Then, users could manually Quick note on synchronicityV8/Electron are basically big event machines. When starting up, it requires everything - when it does, each module owns the CPU - no other javascript code is executing at this time. Any synchronous operation ( It's going to be tricky to write the entire (It will also look like the app is taking forever to start, which is bad) I hope this makes sense. Another option would be to ship a native executable (I'd go with golang) which role would be to:
Lastly, I hope you understand why it's not done yet :) Edit: a last solution comes to mind. If only tech-savvy users care about migrating |
|
Sounds pretty involved. From reading the Electron docs, I personally wouldn't mind having to move the directory manually, it's a one-time migration after all. Would this new |
Yep, except if we go even more involved and start splitting folders even more. My original design intention was that: chrome cache files should be small enough that it shouldn't matter where they're stored (I know it's not true for everyone 😞) - games/installed items are the main consumer of disk space, so you should get to pick where they're installed. Downloads also go wherever your main "install location" is. |
|
itch v25 is out, and:
|
|
I am depressed to see that the decision was made to migrate from ~/.config/foo to ~/.foo instead of the appropriate ~/.local/share/foo and ~/.cache as suggested in the original issue report here. |
So, let's fix that. What changed (between .deb/.rpm packages and itch-setup) was: the app's binaries moved from Now that itch-setup is a thing, and it works well, there is a path for me to migrate the Anyway, please don't get depressed over that. I didn't just ignore all the feedback, there were a lot of tricky things to get right, and now that v25's been out for a while and is stable, we can:
I've just opened #2252 to track that. |
|
Thinking about this some more, /cc @shunsei @sparr Currently, itch v25 uses two directories:
So, with all that in mind, I'm not sure that I can map this cleanly to The only good candidate for As for Splitting up what currently goes in
Which leaves us with the following problems:
Would that be a step in the right direction or? I'm sort of debating what the advantages here would be compared to the amount of work it is. |
|
Yeah, given that |
|
My two cents on the matter. I second the comment above. Currently most of what's under |
|
GPUCache is less than one megabyte for me atm (but the app is not running).
The larger caches are in Partitions, they're mostly images but mixed in
with HTML5 save data / cookies
…On Sat, Feb 23, 2019, 17:28 Paul Joannon ***@***.***> wrote:
My two cents on the matter. I second the comment above.
Currently most of what's under ~/.config/itch/ would be better off in
~/.local/share/itch/. Keeping the actual configuration files under
~/.config/itch/ would be nice but if splitting up the folders are error
prone for now, I'd rather see everything move out.
I personally don't like the idea of moving the content of ~/.itch/ to
~/.local/lib/itch/: itch and itch-setup doesn't belong there. In addition
I'm pretty sure this is not an XDG folder.
As for ~/.cache/, how disk consuming is the GPUCache/ folder anyway? I'm
not sure this is a huge issue at the moment.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1184 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHoLZkb1px0IogWcV0nI2fg1FGOxqSgDks5vQWwegaJpZM4M3xRw>
.
|
|
So, moving It would:
The process would be:
The only remaining file any of the tools would write to itch would be... (Please vote 👍 or 👎 using comment reactions - if you vote against, please explain) |
|
(note that, anywhere I say |
|
|
|
What I expect to be in user directories ( Alternatively, start saving everything into |
|
Just don't use I'd put everything in For the cache dir, be sure to support its deletion, I delete mine regularly. |
So, here's the thing that bothers me about this article: it says "just read the standard and follow it, duh!" - well, I've read the standard, a dozen times, and it doesn't say where to put applications that don't need root to be installed I'm familiar with package manager guidelines that have strong opinions on where to put everything (and it differs by distro! Even after FHS!), and I'm still not convinced it's not a big ol' waste of time. No, you don't need to edit any of the files itch drops on disk by hand, ever. You might want to force a clean install of the binaries, in which case you can just Again, How often do you actually |
|
+1 for using Is this the current behavior? If so, please update https://itch.io/docs/itch/installing/linux/ By the way... there's absolutely nothing wrong using XDG is not that complicated, if you think of its counterparts:
TL/DR: When in doubt, keep everything in |
|
+1 for use of Do not, under any circumstances, pollute my |
XDG is an attempt to create standards and guidelines on user's home, much like FHS does for the system. Splitting applications' data in several locations (
They are not, but they're quite established conventions used by many software. And
No, it is not. Mine has only
No there is not, unless inside a given application's
It does make backups and system migrations a whole lot easier. Instead of special case every dotfile/dotdir of every app in my |
|
Yes, software that existed long before XDG (or even FHS) still require special-casing, such as |
|
I'm also bothered by this. My current work around is to always execute Itch like so HOME="$HOME/.local/opt/itch" ./itchI currently use a wrapper script to do this for me and have my Worth noting |
|
Is there any way to force itch to look for files inside |
You could consider copying my method and doing HOME="$HOME/.local/share/itch" ./itchTo force Itch to use that directory. It is worth noting that my solution comes with numerous (mostly benign) caveats that require creating Symbolic Links to your proper home directory to correct since this makes Itch treat the folder in question as your home directory. At the very least I needed to symlink the following into the False Home Directory:
Most of these are optional, but I needed flatpak support for at least one title. Use relative symlinks (AKA This is not ideal, but it's the best solution I know of. |
|
This still doesn't solve the |
This workaround causes Itch to instead use It's not perfect, but it does prevent home directory clutter and keeps your Itch data out of your usual |
|
You could use |
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.The text was updated successfully, but these errors were encountered: