fcitx / kcm-fcitx Goto Github PK
View Code? Open in Web Editor NEWKDE Config Module for Fcitx
Home Page: http://code.google.com/p/fcitx/
License: GNU General Public License v2.0
KDE Config Module for Fcitx
Home Page: http://code.google.com/p/fcitx/
License: GNU General Public License v2.0
https://bugzilla.redhat.com/show_bug.cgi?id=1290846
Description of problem:
When I select input methods in fctix input methods configuration, it crashed.
Version-Release number of selected component:
kde-cli-tools-5.4.3-1.fc23
Additional info:
reporter: libreport-2.6.3
backtrace_rating: 4
cmdline: kcmshell5 kcm_fcitx
crash_function: QArrayData::allocate
executable: /usr/bin/kcmshell5
global_pid: 1231
kernel: 4.2.6-301.fc23.x86_64
runlevel: N 5
type: CCpp
uid: 1000
Truncated backtrace:
Thread no. 1 (10 frames)
#1 QArrayData::allocate at tools/qarraydata.cpp:101
#2 QTypedArrayData<unsigned short>::allocate at ../../src/corelib/tools/qarraydata.h:216
#3 QString::QString at tools/qstring.cpp:1497
#4 parse_locale_tag at tools/qlocale.cpp:376
#5 qt_splitLocaleName at tools/qlocale.cpp:405
#6 QLocalePrivate::getLangAndCountry at tools/qlocale.cpp:459
#7 findLocaleData at tools/qlocale.cpp:474
#8 localePrivateByName at tools/qlocale.cpp:700
#9 QLocale::QLocale at tools/qlocale.cpp:760
#10 Fcitx::IMPage::Private::IMModel::data at ../../src/impage.cpp:116
CMakeLists.txt
contains:
find_package(KF5 REQUIRED COMPONENTS
CoreAddons
WidgetsAddons
KCMUtils
ItemViews
I18n
KIO
NewStuff
)
KCMUtils
is not used anywhere, so references to it should be deleted.
Completion
should be added. Inclusions of its headers:
src/imconfigdialog.cpp:#include <KComboBox>
src/uipage.cpp:#include <KLineEdit>
ConfigWidgets
should be added. Inclusions of its headers:
src/module.h:#include <KCModule>
Scanning of built ELF files (kcm_fcitx.so
, kbd-layout-viewer
) for NEEDED entries confirms above results.
When Fcitx is not running, if you go to System Settings -> Regional Settings -> Input Methods
it shows an error, which is expected.
But going to other configuration modules, the error overlay does not goes away, effectivelly turning the configuration of the other modules unavailable until Fcitx is running.
There you can see the Fcitx overlay covering the System Settings -> Hardware -> Input Devices -> Keyboard
configuration:
The same issue in System Settings -> Hardware -> Multimedia -> Audio CDs
configuration:
Using kcm-fcitx 0.5.6
with plasma 5.20.4
使用kcm-fcitx时,更改Addon Config里的Module/InputMethod模块,禁用或者启用某些项目后,Apply键依然是灰色的。
这是不是说里面的设置会马上写到配置文件里去而不用Apply?要是这样就太好了。
Arch Linux,KDE 4.7.1,fcitx 4.1.2,kcm-fcitx 0.2.0
这个帖子是用fcitx写的,上佳的输入法。kcm-fcitx也非常方便,谢谢你(们)。
src/global.cpp
contains:
QString Global::testWrapper(const QString &path) const {
char* qtguiwrapper[] = {
fcitx_utils_get_fcitx_path_with_filename ("libdir", "fcitx/libexec/fcitx-qt-gui-wrapper"),
fcitx_utils_get_fcitx_path_with_filename ("libdir", "fcitx/libexec/fcitx-qt5-gui-wrapper")
};
QString wrapper;
for (int i = 0; i < FCITX_ARRAY_SIZE(qtguiwrapper); i++) {
if (qtguiwrapper[i]) {
QStringList args;
args << QLatin1String("--test");
args << path;
int exit_status =QProcess::execute(QString::fromLocal8Bit(qtguiwrapper[i]), args);
if (exit_status == 0) {
wrapper = QString::fromLatin1(qtguiwrapper[i]);
break;
}
}
}
return wrapper;
}
If both fcitx-qt-gui-wrapper
and fcitx-qt5-gui-wrapper
are installed, this code will use fcitx-qt-gui-wrapper
, but it seems that using fcitx-qt5-gui-wrapper
would be nicer.
I suggest to invert order of elements of qtguiwrapper array in this code.
/home/henryhu/proj/kcm-fcitx/src/skinpage.cpp:134:10: error: case value evaluates to 2401319027, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
case PathRole:
Please change PathRole to something smaller.
On the same page with the screenshot in #6, the information text at the bottom says usually ncluding.
Hello!
I am on Manjaro with KDE. In order to use the configuration tool, you need kcm-fcitx
. However, when I go to install fcitx5-chinese-addons
, it says fcitx5-chinese-addons and fcitx are in conflict
. Is it possible that you update the conflicts to be able to make this work?
Thanks!
After updating plasma 5.2 -> 5.3, I can not set the default keyboard in kcm-fcitx anymore.
The dialog appears, I can select the keyboard layout, but pressing OK, Cancel does not work. Only Defaults button works. Exiting the dialog is only possible by clicking the X close button.
As a result, my default keyboard is always stuck on en_US. Using kcm-fcitx 0.5.0 on arch linux x64
#include <QPainterPath>
should be added in layout/keyboardlayoutwidget.cpp
.
BTW, can we have a new release? Version 0.5.5 can't be compiled using GCC 10, but the issue (negative value of PathRole) has been fixed in this repo.
I use kde5 and kcm-fcitx-0.5.0.
Whenever I try to unticked "Only show current language", it exited unnormally.
Is there any bug?
$ kcmshell5 --list
The desktop entry file "kbd-layout-viewer.desktop" has Type= "Application" but is located under " "Shared Data" " instead of "Applications"
kf5.kservice.sycoca: Invalid Service : "kbd-layout-viewer.desktop"
This might be due to file kbd-layout-viewer.desktop
put under /usr/share/kservices5/
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.