From 2dc8bd0a063b750033a5f586090083dc3836beba Mon Sep 17 00:00:00 2001 From: kamiyadm Date: Thu, 14 Dec 2023 17:35:50 +0800 Subject: [PATCH] fix: some app failed to use gsettings Add environment variable GNOME_DESKTOP_SESSION_ID into container, some applications rely on this variable to decide whether to use gsettings configuration. Such as chrome. Log:" --- src/linglong/utils/command/env.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/linglong/utils/command/env.cpp b/src/linglong/utils/command/env.cpp index 3c307070c..8d85753e5 100644 --- a/src/linglong/utils/command/env.cpp +++ b/src/linglong/utils/command/env.cpp @@ -42,7 +42,8 @@ const QStringList envList = { "QT_WAYLAND_SHELL_INTEGRATION", "GDMSESSION", "QT_WAYLAND_FORCE_DPI", - "GIO_LAUNCHED_DESKTOP_FILE" // 系统监视器 + "GIO_LAUNCHED_DESKTOP_FILE", // 系统监视器 + "GNOME_DESKTOP_SESSION_ID" // gnome 桌面标识,有些应用会读取此变量以使用gsettings配置, 如chrome }; QStringList getUserEnv(const QStringList &filters)