Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2a16bcd377 !10 [sync] PR-8: 修控制中心修改语言注销后登录不能影响输入法语言显示问题
From: @openeuler-sync-bot
Reviewed-by: @weidongkl
Signed-off-by: @weidongkl
2021-08-27 06:23:00 +00:00
herengui
dff9d58420 修复在控制中心切换语言无法影响输入法右键菜单的问题
Signed-off-by: herengui <herengui@uniontech.com>
(cherry picked from commit ad9dd051ca65c32b3ce27c209d1087d220ba0777)
2021-08-27 13:54:07 +08:00
openeuler-ci-bot
f976171182 !9 [sync] PR-7: 修复中文字符无法在 journal 中显示的问题
From: @openeuler-sync-bot
Reviewed-by: @weidongkl
Signed-off-by: @weidongkl
2021-08-27 05:51:10 +00:00
herengui
19773d5f5a 修复中文环境journal中无法正常显示中文字符的问题
Signed-off-by: herengui <herengui@uniontech.com>
(cherry picked from commit 19de75ed65370385734005cbd4d74683e3668fbd)
2021-08-27 13:44:21 +08:00
openeuler-ci-bot
e5531f9353 !6 修复 openEuler:Factory 上编译失败
From: @tanyulong2021
Reviewed-by: @dou33
Signed-off-by: @dou33
2021-08-20 07:53:13 +00:00
tanyulong2021
3b6edbb999 fix compile error 2021-08-20 15:05:58 +08:00
openeuler-ci-bot
ed6f168b31 !3 rename patchname
From: @yeqinglong01
Reviewed-by: @weidongkl
Signed-off-by: @weidongkl
2021-03-15 10:37:23 +08:00
yeqinglong
519b676294 rename patchname 2021-03-15 10:22:17 +08:00
openeuler-ci-bot
0d7ee96b82 !2 fix can't input chinese in en environment
From: @yeqinglong01
Reviewed-by: @weidongkl
Signed-off-by: @weidongkl
2021-03-12 14:09:29 +08:00
yeqinglong
8d22d1f7c0 fix can't input chinese in en environment 2021-03-12 14:02:45 +08:00
5 changed files with 134 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From d4f871be3df2b9cd089aef78245d22d5ccce677b Mon Sep 17 00:00:00 2001
From: yeqinglong <yeqinglong@uniontech.com>
Date: Fri, 12 Mar 2021 13:53:30 +0800
Subject: [PATCH] fix can't input chinese in en environment
---
data/xinput.sh.in.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/xinput.sh.in.in b/data/xinput.sh.in.in
index 379ca99..d918787 100755
--- a/data/xinput.sh.in.in
+++ b/data/xinput.sh.in.in
@@ -54,7 +54,7 @@ if [ -r "$USER_XINPUTRC" -a "x$IMSETTINGS_DISABLE_USER_XINPUTRC" = "xno" ]; then
elif [ -r "$SYS_XINPUTRC" ]; then
# FIXME: This hardcoded list has to be gone in the future.
# Locales that normally use input-method for native input
- _im_language_list="as bn gu hi ja kn ko mai ml mr ne or pa si ta te th ur vi zh"
+ _im_language_list="as bn gu hi ja kn ko mai ml mr ne or pa si ta te th ur vi zh en"
_sourced_xinputrc=0
for i in $_im_language_list; do
if echo $tmplang | grep -q -E "^$i"; then
--
2.27.0

View File

@ -0,0 +1,35 @@
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

View File

@ -0,0 +1,14 @@
diff --git a/imsettings-daemon/main.c b/imsettings-daemon/main.c
index f72b822..254e683 100644
--- a/imsettings-daemon/main.c
+++ b/imsettings-daemon/main.c
@@ -175,7 +175,8 @@ main(int argc, char **argv)
NULL);
loop_in_object = g_quark_from_static_string("imsettings-daemon-loop");
g_object_set_qdata(G_OBJECT (server), loop_in_object, loop);
-
+ // Set language
+ setlocale(LC_ALL, "");
imsettings_server_start(server, arg_replace);
g_main_loop_run(loop);

View File

@ -0,0 +1,39 @@
From 2afb5e7516406d6147f5469e7f3482d61b6bb3df Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Fri, 20 Aug 2021 14:43:12 +0800
Subject: [PATCH] fix compile error sinal multi defined
---
imsettings-daemon/imsettings-proc.c | 2 +-
imsettings-daemon/imsettings-server.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/imsettings-daemon/imsettings-proc.c b/imsettings-daemon/imsettings-proc.c
index b78fcff..25c461a 100644
--- a/imsettings-daemon/imsettings-proc.c
+++ b/imsettings-daemon/imsettings-proc.c
@@ -86,7 +86,7 @@ static gboolean _stop_process (IMSettingsProc *proc,
G_DEFINE_TYPE (IMSettingsProc, imsettings_proc, G_TYPE_OBJECT);
-guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[LAST_SIGNAL] = { 0 };
/*< private >*/
static gboolean
diff --git a/imsettings-daemon/imsettings-server.c b/imsettings-daemon/imsettings-server.c
index 1b97548..db9df37 100644
--- a/imsettings-daemon/imsettings-server.c
+++ b/imsettings-daemon/imsettings-server.c
@@ -93,7 +93,7 @@ GDBusInterfaceVTable __iface_vtable = {
NULL,
NULL,
};
-guint signals[LAST_SIGNAL];
+static guint signals[LAST_SIGNAL];
G_DEFINE_TYPE (IMSettingsServer, imsettings_server, G_TYPE_OBJECT);
G_LOCK_DEFINE_STATIC (logger);
--
2.27.0

View File

@ -1,7 +1,7 @@
Name: imsettings
Version: 1.7.3
Release: 7
License: LGPLv2+
Release: 11
License: LGPLv2.1
Summary: Delivery framework for general Input Method configuration
URL: https://bitbucket.org/tagoh/imsettings/src/master/
Source0: https://bitbucket.org/tagoh/imsettings/downloads/imsettings-%{version}.tar.bz2
@ -10,6 +10,10 @@ Patch0001: imsettings-disable-xim.patch
Patch0002: imsettings-xinput-xcompose.patch
Patch0003: imsettings-force-enable-for-cinnamon.patch
Patch0004: imsettings-fix-unbound-var.patch
Patch0005: Fix-can-not-input-chinese-in-en-environment.patch
Patch0006: imsetting-fix-compile-error-sinal-multi-defined.patch
Patch0007: fix-journal_missing_chinese.patch
Patch0008: fix-changed_lang_in_dcc_not_affecting_fcitx.patch
BuildRequires: desktop-file-utils intltool gettext libtool automake autoconf glib2 >= 2.32.0 gobject-introspection-devel
BuildRequires: libnotify-devel libX11-devel libgxim-devel >= 0.5.0 gtk3-devel >= 3.3.3
Requires: xorg-x11-xinit >= 1.0.2-22
@ -142,5 +146,20 @@ fi
%{_libdir}/imsettings/libimsettings-qt.so
%changelog
* Fri Aug 27 2021 herengui <herengui@uniontech.com> - 1.7.3-11
- Fix: fix issue that change language in deepin-control-center cannot affect the fcitx
- Bug: #I47HF0
* Fri Aug 27 2021 herengui <herengui@uniontech.com> - 1.7.3-10
- fix issue that chinese characters missing in the journal
- Bug: #I47HD9
* Fri Aug 20 2021 tanyulong <tanyulong@kylinos.cn> - 1.7.3-9
- fix compile error sinal multi defined
* Fri Mar 12 2021 weidong <weidong@uniontech.com> - 1.7.3-8
- fix can't input chinese in en environment
* Sat Dec 21 2019 likexin <likexin4@huawei.com> - 1.7.3-6
- package init