-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
UI: Fix missing support for portable configuration files #11300
base: master
Are you sure you want to change the base?
Conversation
9e58c78
to
5ade18d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay at a glance.
Windows and Linux allow the storage of configuration files relative to the binary location, which is enabled by default on Windows and has to be explicitly enabled on Linux. This was originally conflated with the LINUX_PORTABLE build setting which also allowed the application itself to be run from non-default locations on a Linux system. This change reintroduces the functionality behind the ENABLE_PORTABLE_CONFIG build setting on Linux. It also adds necessary code to make this setting compatible with the recently introduced relocatable settings code changes: When portable mode is enabled, user configuration, scene collections, and profiles are stored in the config directory created for portable mode.
5ade18d
to
147eb88
Compare
Shouldn't this be on by default on Windows? Or does Windows always have this on? |
Correct, it’s always enabled on Windows. The explicit build flag is only needed if |
Description
Fixes broken support for portable mode on Linux and Windows.
Motivation and Context
Windows and Linux allow the storage of configuration files relative to the binary location, which is enabled by default on Windows and has to be explicitly enabled on Linux.
This was originally conflated with the
LINUX_PORTABLE
build setting which also allowed the application itself to be run from non-default locations on a Linux system.This change reintroduces the functionality behind the
ENABLE_PORTABLE_CONFIG
build setting on Linux.It also adds necessary code to make this setting compatible with the recently introduced relocatable settings code changes:
When portable mode is enabled, user configuration, scene collections, and profiles are stored in the config directory created for portable mode.
How Has This Been Tested?
Tested on Windows 11 with portable mode enabled and disabled and observed configuration files being created in different respective locations.
Types of changes
Checklist: