diff --git a/0010-Fix-the-problem-of-scrambled-shortcut-keys.patch b/0010-Fix-the-problem-of-scrambled-shortcut-keys.patch new file mode 100644 index 0000000..406d12e --- /dev/null +++ b/0010-Fix-the-problem-of-scrambled-shortcut-keys.patch @@ -0,0 +1,27 @@ +From 1c127130f57ea4085b26b42771716196df20e96b Mon Sep 17 00:00:00 2001 +From: peijiankang +Date: Mon, 9 Jan 2023 09:39:04 +0800 +Subject: [PATCH] Fix the problem of scrambled shortcut keys + +--- + plugins/devices/shortcut/shortcut.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/plugins/devices/shortcut/shortcut.cpp b/plugins/devices/shortcut/shortcut.cpp +index 44efa56..a5084a9 100644 +--- a/plugins/devices/shortcut/shortcut.cpp ++++ b/plugins/devices/shortcut/shortcut.cpp +@@ -100,6 +100,10 @@ int Shortcut::pluginTypes() + + QWidget *Shortcut::pluginUi() + { ++ //修复快捷键中文乱码问题 ++ const QString locale = QLocale::system().name(); ++ (void) setlocale(LC_ALL, QString(locale + ".UTF-8").toStdString().c_str()); ++ + if (mFirstLoad) { + mFirstLoad = false; + +-- +2.33.0 + diff --git a/ukui-control-center.spec b/ukui-control-center.spec index a9e7d0c..1a8cc9e 100644 --- a/ukui-control-center.spec +++ b/ukui-control-center.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: ukui-control-center Version: 3.1.2 -Release: 7 +Release: 8 Summary: utilities to configure the UKUI desktop License: GPL-2+ URL: http://www.ukui.org @@ -12,7 +12,7 @@ Patch03: 0003-fix-power-missing-issue.patch Patch05: 0005-Fix-the-problem-of-displaying-none-in-the-interface-version-information.patch Patch07: 0007-modify-icon-theme-not-display.patch Patch08: ukui-control-center-3.0.4-fix-invalid-automatic-login.patch - +Patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch BuildRequires: qt5-qtsvg-devel BuildRequires: gsettings-qt-devel @@ -83,7 +83,7 @@ The UKUI control center contains configuration applets for the UKUI des allowing %build qmake-qt5 -make -j2 +make -j4 %install rm -rf $RPM_BUILD_ROOT @@ -131,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Jan 9 2023 peijiankang - 3.1.2-8 +- add patch10: 0010-Fix-the-problem-of-scrambled-shortcut-keys.patch + * Fri Dec 30 2022 huayadong - 3.1.2-7 - Fix invalid automatic login, fix invalid password free login