Skip to content

Commit

Permalink
fix: some app failed to use gsettings
Browse files Browse the repository at this point in the history
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:"
  • Loading branch information
kamiyadm committed Dec 14, 2023
1 parent 28bb59c commit 2dc8bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/linglong/utils/command/env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2dc8bd0

Please sign in to comment.