-
Notifications
You must be signed in to change notification settings - Fork 71
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
Added a Portable mode #364
Conversation
…file named "PORTABLE" to the executable directory. Works on Windows, need to test on Linux
I have to go through this one again, but I will do so in the next few days. |
just bikeshedding here:
Hm? |
I'm not a fan of using an environment variable on Windows. That said, making it configurable via CMake sounds like a great idea for Linux. That addition can be done as a separate PR I think. |
Avoid environment variable, argument or presence of a portable.txt file is the way to go |
Thinking about it again, yes, it's a stupid idea. But making it default via cmake for e.g. a flatpak build would be advantageous. |
Hello, any news regarding this feature, are there any plans to integrate it in the next release ? |
|
I need to go through this again and either merge it or implement my own version. It won't be in the next release, but should follow soon after. |
I was investigating problems with Documents/ on Windows - mainly due to OneDrive - and realized that on failure the system was already supposed to use the local directory. That wasn't quite happening (not checking in all of the correct places), but with that in place it made sense to directly support portable installs. So I basically implemented it, then remembered this PR. My version is similar but with some notable differences:
Thanks for taking the time to implement this @kevinfoley. I'm going to close it now. |
Hello Lucius, will this be implemented in next version ? I tried putting a settings.ini file in my forceengine folder, but it still uses the one in Documents |
I have not released a new version with this code yet, it is work that will be included in the next release. |
Hello, thanks, indeed I figured that out by looking at the commit history. |
Added support for running TFE in "Portable Mode", where temporary files and user documents are stored in subfolders inside the executable directory. Portable mode can be activated in either of two ways:
-portable
PORTABLE
to the executable directoryUser documents are saved within a new directory named
UserDocs
inside of the executable directory.Tested on Windows 10 and Fedora 38/KDE Plasma