Compare commits
10 Commits
6bf9041f00
...
2a16bcd377
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a16bcd377 | ||
|
|
dff9d58420 | ||
|
|
f976171182 | ||
|
|
19773d5f5a | ||
|
|
e5531f9353 | ||
|
|
3b6edbb999 | ||
|
|
ed6f168b31 | ||
|
|
519b676294 | ||
|
|
0d7ee96b82 | ||
|
|
8d22d1f7c0 |
25
Fix-can-not-input-chinese-in-en-environment.patch
Normal file
25
Fix-can-not-input-chinese-in-en-environment.patch
Normal 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
|
||||
|
||||
35
fix-changed_lang_in_dcc_not_affecting_fcitx.patch
Normal file
35
fix-changed_lang_in_dcc_not_affecting_fcitx.patch
Normal 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
|
||||
|
||||
14
fix-journal_missing_chinese.patch
Normal file
14
fix-journal_missing_chinese.patch
Normal 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);
|
||||
|
||||
39
imsetting-fix-compile-error-sinal-multi-defined.patch
Normal file
39
imsetting-fix-compile-error-sinal-multi-defined.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user