Code Monkey home page Code Monkey logo

kcm-fcitx's Introduction

kcm-fcitx's People

Contributors

adaptee avatar mxj4 avatar nihui avatar ukyoi avatar wengxt avatar yuyichao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kcm-fcitx's Issues

Fwd: [abrt] kde-cli-tools: QArrayData::allocate(): kcmshell5 killed by SIGSEGV

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

Inaccurate dependencies on KF5

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.

Cannot set hotkey of active input method to Super+Space

Screenshot_20221026_193029

custom switch key cannot be set to Super+Space, which is the default hotkey of ibus.

If I press custom switch key, it will display meta + .... (only test in KDE)

However, in ~/.config/fcitx/config, it can work, so I think it is bug of kcm-fcitx.

# Custom switch key
CustomSwitchKey=SUPER_SPACE

Error overlay affects other configuration modules

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:

FCITX_Error

The same issue in System Settings -> Hardware -> Multimedia -> Audio CDs configuration:

FCITX_Error_Any

Using kcm-fcitx 0.5.6 with plasma 5.20.4

关于kcm的Apply键

使用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也非常方便,谢谢你(们)。

Prefer fcitx-qt5-gui-wrapper instead of fcitx-qt-gui-wrapper

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.

Compiling failure with clang

/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.

Typo on UI

On the same page with the screenshot in #6, the information text at the bottom says usually ncluding.

Plasma 5.3: can not set default keyboard layout

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

<QPainterPath> needs to be included for qt 5.15

#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.

kcm-fcitx exited unnormally

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?

Warning when starting kcm_fcitx

$ 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/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.