Ensure xr_driver config directory exists before writing config

Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-28 19:58:30 +00:00
parent 3bbea9fdc7
commit 6cf9a08ba0
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ def excepthook(exc_type, exc_value, exc_traceback):
sys.excepthook = excepthook
XRDriverIPC.set_instance(XRDriverIPC(logger, get_config_dir()))
os.makedirs(os.path.join(get_config_dir(), 'xr_driver'), exist_ok=True)
if GLib.MAJOR_VERSION * 100 + GLib.MINOR_VERSION >= 274:
APPLICATION_FLAGS = Gio.ApplicationFlags.DEFAULT_FLAGS