From d3ba8c8af405a1fcbae3fb512cb06f8479e01848 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 8 Jul 2015 10:03:09 -0700 Subject: [PATCH] UI: Make XDG config path first if moving to XDG --- obs/obs-app.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/obs/obs-app.cpp b/obs/obs-app.cpp index ce80f101d..cd6c04b53 100644 --- a/obs/obs-app.cpp +++ b/obs/obs-app.cpp @@ -1075,6 +1075,13 @@ static void move_to_xdg(void) if (snprintf(old_path, 512, "%s/.obs-studio", home) <= 0) return; + + /* make base xdg path if it doesn't already exist */ + if (GetConfigPath(new_path, 512, "") <= 0) + return; + if (os_mkdirs(new_path) == MKDIR_ERROR) + return; + if (GetConfigPath(new_path, 512, "obs-studio") <= 0) return;