-
Notifications
You must be signed in to change notification settings - Fork 701
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
Linux: Follow the XDG Base Directory Specification #4337
Comments
The problem is that We need a solution for that before we can move stuff to a hidden folder. |
The "Browse Files" button in the launcher already opens the correct folder, that should be discoverable enough, right? I mean speaking as a user it's not really much more intuitive to look for a folder in your home directory when the AppImage you launched is in an entirely different location anyway. |
Oh, yeah, it was late and I forgot that we already solved that. (Setting up ~/Archipelago predates that button) So there should be nothing in the way other than work. We should definitely include a migration code path, maybe create a symlink if the folder was moved so downgrading doesn't break. |
Creating a symlink when moving sounds like a great idea, also has the benefit of possibly being less confusing to existing users :) I'll create a PR (though I'm not familiar with the build process). |
I hope I get to this soon, I am wondering if state dir is correct though. Looking at the XDG specs, it reads to me like if the data in that folder is important and/or portable (between versions?), it should be in XDG_DATA_HOME rather than XDG_STATE_HOME, which i think would apply to most files we put there.
There is a github "Build" action that produces the build output. You just need to enable actions in the repo settings of your fork, go to actions tab, select "Build", and in the top right corner click "Run workflow" and select your branch. |
I'm imagining some users might prefer the |
The config is in that folder 🤔 |
What feature would you like to see?
When using the AppImage on Linux, Archipelago creates
~/Archipelago
to dump its files into:Archipelago/Utils.py
Lines 154 to 156 in c9625e1
This behavior is annoying if you like to keep a clean home directory.
The XDG Base Directory Specification exists for this purpose and is widely followed on Linux nowadays.
Since Archipelago doesn't separate its files into clearly separatable directories, the recommended "catch-all" for cases like this is using
$XDG_STATE_HOME
(defaulting to~/.local/state
).Therefore I propose using
$XDG_STATE_HOME/Archipelago
as the default Archipelago directory (moving~/Archipelago
to it if it exists):The text was updated successfully, but these errors were encountered: