Skip to content

frontend: Use default location for user settings as fallback #12040

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PatTheMav
Copy link
Member

Description

Enables OBS Studio to fall back on default paths for settings, profiles, and scene collections when configured paths do not exist.

Motivation and Context

When a unique path is set up as the location for user settings, profiles, or scene collections, migrating the files from one computer to another will lead to confusing error messages as the original paths might not exist on the new machine.

The default directories for configuration files are already created by this point, so using those paths as a fallback should enable OBS Studio to also create the corresponding fallback settings files.

While this might lead to a confusing "in-between" state as OBS Studio will just carry on launching, creating fallbacks for everything, this is in line with current behaviour in the rest of the application.

How Has This Been Tested?

Tested locally with bad paths set up in global.ini and also with an empty global.ini to ensure that no "empty migration" takes place.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added the Bug Fix Non-breaking change which fixes an issue label Apr 11, 2025
@PatTheMav PatTheMav force-pushed the user-location-fallback branch from 140a074 to 4f24a81 Compare April 17, 2025 16:17
When a unique path is set up as the location for user settings,
profiles, or scene collections, migrating the files from one computer
to another will lead to confusing error messages as the original paths
might not exist on the new machine.

The default directories for configuration files are already created by
this point, so using those paths as a fallback should enable OBS Studio
to also create the corresponding fallback settings files.
@PatTheMav PatTheMav force-pushed the user-location-fallback branch from 4f24a81 to e6aeca0 Compare April 20, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Non-breaking change which fixes an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants