You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: frontend: importing a profile from a path with a trailing slash copies it into the profiles folder itself (upstream #13862) #2295
Upstream OBS bug obsproject/obs-studio#13862, fixed upstream in obsproject/obs-studio PR 13863 after obs-rust's base.
Bug
Importing a profile from a folder path that ends in a slash copies the profile's files into the profiles folder itself, not into a folder of their own. A second import then fails with "File exists".
Cause:std::filesystem::path("/a/MyProfile/").filename() is empty, so the destination becomes basic/profiles/ (frontend/widgets/OBSBasic_Profiles.cpp.hpp around line 589). The macOS folder dialog returns a trailing slash, and a typed path in the Qt dialog can too. The code is shared by all platforms.
Plan
RED: a Qt cmocka test of the folder name taken from the selected path: /x/MyProfile/ gives MyProfile, plus edge cases. Check the scene collection import for the same pattern.
GREEN: clean the path first, as upstream does (QDir::cleanPath).
Activity
rdoupe commentedon Oct 25, 2026
Claiming: #2295.
test: Profile import with a trailing slash
frontend: Fix profile import with trailing slash
frontend: Import a profile from a path with a trailing slash (obs-rus…