36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 94e4b6dde1c1a4921d099f18ba23787c74ca3774 Mon Sep 17 00:00:00 2001
|
|
From: He Rengui <herengui@uniontech.com>
|
|
Date: Tue, 27 Jul 2021 19:33:29 +0800
|
|
Subject: [PATCH] fix issue that changed language in dde-control-center but not
|
|
affecting fcitx process
|
|
|
|
Signed-off-by: He Rengui <herengui@uniontech.com>
|
|
---
|
|
imsettings-daemon/imsettings-proc.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/imsettings-daemon/imsettings-proc.c b/imsettings-daemon/imsettings-proc.c
|
|
index b78fcff..b29fcd1 100644
|
|
--- a/imsettings-daemon/imsettings-proc.c
|
|
+++ b/imsettings-daemon/imsettings-proc.c
|
|
@@ -319,6 +320,8 @@ _start_process(IMSettingsProc *proc,
|
|
"QT_IM_MODULE",
|
|
"XMODIFIERS",
|
|
"XDG_CURRENT_DESKTOP",
|
|
+ "LANGUAGE",
|
|
+ "LANG",
|
|
NULL
|
|
};
|
|
gsize len, i, j, k;
|
|
@@ -348,6 +351,7 @@ _start_process(IMSettingsProc *proc,
|
|
}
|
|
if (lang) {
|
|
envp[j++] = g_strdup_printf("LC_CTYPE=%s", lang);
|
|
+ envp[j++] = g_strdup_printf("LANG=%s", lang);
|
|
}
|
|
/* set environment variables explicitly to ensure
|
|
* any processes being brought up from the IM process
|
|
--
|
|
2.20.1
|
|
|