Skip to content

frontend: Fix user config subfolder creation#13187

Open
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Warchamp7:config-location-fix
Open

frontend: Fix user config subfolder creation#13187
Warchamp7 wants to merge 1 commit intoobsproject:masterfrom
Warchamp7:config-location-fix

Conversation

@Warchamp7
Copy link
Member

Description

Fixes OBS failing to launch when Configuration in global.ini is set to a folder that exists but does not have an obs-studio subfolder inside it.

Motivation and Context

global.ini allows the configuration of four different paths:

[Locations]
Configuration=
SceneCollections=
Profiles=
PluginManagerSettings=

All of these locations are used as a base path and anything using them places files into <base>/obs-studio/

SceneCollections, Profiles, and PluginManagerSettings all ensure that the obs-studio subfolder exists.
Configuration does not.

As a result OBS will fail to create it's user.ini file during startup and immediately close.

How Has This Been Tested?

  • Set paths of all Locations to a folder that does not exist

    • OBS falls back to the default locations and launches with my normal settings, stored in appdata
  • Set paths of all Locations to a folder that does exist but with no obs-studio subfolder

    • OBS cannot create user.ini and fails during startup
  • Created obs-studio folder manually in the specified location

    • OBS launches successfully and creates all data in the specified location
  • Set Configuration to it's default AppData location but changed the others to a custom folder

    • OBS launches using normal user.ini, all other locations correctly set up obs-studio subfolders

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.

@Warchamp7 Warchamp7 added the Bug Fix Non-breaking change which fixes an issue label Mar 3, 2026
@Warchamp7 Warchamp7 force-pushed the config-location-fix branch from c27d5bd to ad49334 Compare March 4, 2026 02:19
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