https://bugs.kde.org/show_bug.cgi?id=373655

            Bug ID: 373655
           Summary: Input Actions daemon checkbox in Custom Shortcuts kcm
                    doesn't reflect actual configuration
           Product: khotkeys
           Version: 5.8.4
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@michael-jansen.biz
          Reporter: mz...@o2.pl
  Target Milestone: ---

Created attachment 102783
  --> https://bugs.kde.org/attachment.cgi?id=102783&action=edit
Use !settings->isDaemonDisabled() to set the daemon checkbox

While input actions work just fine, it seems the "Start the Input Actions
daemon on login" checkbox doesn't reflect the actual configuration. My
khotkeysrc has Disabled=false in [Main]. However, in the gui the option appears
as the daemon is disabled, i.e. the checkbox is unchecked.

Further investigation shows the config is loaded properly, it's never used in
GlobalSettingsWidget::doCopyFromObject, which instead does:
ui.enabled->setChecked(file.readEntry("X-KDE-Kded-autoload", false));
At least on my install this always returns false, since the .desktop doesn't
have this key.

Enclosed please find a quick fix, which uses !settings->isDaemonDisabled() to
set the checkbox. I'm unsure, however, if that's the proper fix.

Here are some system specs:
kde-frameworks 5.29.0
Qt 5.6.2
xcb platform

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to