-
Notifications
You must be signed in to change notification settings - Fork 57
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
Allow (opt-in?) writing to XDG_STATE_DIR instead of requiring cwd
to be writable
#364
Comments
I get your point, however
PS : I don't see the benefit of XDG here. I would leverage Environment.SpecialFolder instead. |
"and thus, requires write access to the binary folder"Ref:
Some clarifications/confirmations, it's these folders you refer to inside the Steam folder containing your game libraries? Location(s) of **steam_appid.txt** inside Steam folder
Location(s) of **steam_api64.dll** inside Steam folder
Yeah, I get why AML needs write access here, but is this the only folder it requires write access to? XDGRef
Well, it'll open up the opportunity for AML to be used (at own risk and etc of course) on other operating systems (like SteamDeck OS). A benefit of XDG I didn't see you address, is that even if the XDG standard was developed for linux derived OSs, plenty of programming languages and 3rd party dependencies use and rely on it now to standardize across MacOS, Windows, and not just Linux OSs. |
I am not sure I follow. What I meant is, that the steam_api64.dll is located in the AML-folder because it is a dependency for the Steamworks.NET.dll library. From Steams API perspective, AML is a game, which is why steam_appid.txt is required to identify the game id. By choosing between XCOM2 and Chimera, AML creates the file with the respective game id accordingly. The SpecialFolder stuff from .NET has multi-platform support (Windows, Linux and MacOS IIRC). So I would imagine this would suffice. |
Apologies for my ignorance/incompetence. Would you be able to give some directions to find the answers to a and b? |
Found the answer to a) in a private blog post from 2015: https://jimrich.sk/environment-specialfolder-on-windows-linux-and-os-x/ |
Sorry for the lack of a response. I was busy and forgot about it. But regardless, there is still the problem that AML needs write access to the application folder, as described above. |
Description
Suggest a solution
$XDG_STATE_DIR/<program name "xcom2-aml"?>/
, which always should be writeable for the executing user.Would make things easier for those of us who like to install programs into immutable filesystems for a plethora reasons (including security ones).
The text was updated successfully, but these errors were encountered: