From a2e4b25415cc5684c8de97c4b498305b1fee0eda Mon Sep 17 00:00:00 2001 From: shirui <1229408499@qq.com> Date: Thu, 16 Nov 2023 07:58:01 +0000 Subject: [PATCH] fix: mount XAUTHORITY in the correct order sometimes XAUTHORITY will in /tmp. Log: --- src/module/runtime/app.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/module/runtime/app.cpp b/src/module/runtime/app.cpp index 8d0a74e11..091afdf3b 100644 --- a/src/module/runtime/app.cpp +++ b/src/module/runtime/app.cpp @@ -528,6 +528,7 @@ class AppPrivate QList> mountMap = { { "/tmp/.X11-unix", "/tmp/.X11-unix" }, // FIXME: only mount one DISPLAY + { getenv("XAUTHORITY"), getenv("XAUTHORITY") }, }; for (const auto &pair : mountMap) { @@ -736,9 +737,6 @@ class AppPrivate auto dconfPath = util::ensureUserDir({ ".config", "dconf" }); roMountMap.push_back(qMakePair(dconfPath, appConfigPath + "/dconf")); - QString xauthority = getenv("XAUTHORITY"); - roMountMap.push_back(qMakePair(xauthority, xauthority)); - for (const auto &pair : roMountMap) { QPointer m(new Mount(r)); m->type = "bind";