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

            Bug ID: 489032
           Summary: Hotkeys stop working on X11 after switching X11 <->
                    Wayland.
    Classification: Frameworks and Libraries
           Product: frameworks-kglobalaccel
           Version: 6.1.0
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: kirill.zhuma...@gmail.com
  Target Milestone: ---

Created attachment 170851
  --> https://bugs.kde.org/attachment.cgi?id=170851&action=edit
Configs examples.

SUMMARY
Hotkeys stop working on X11 after switching X11 <-> Wayland.

STEPS TO REPRODUCE
1. Switch from X11 to Wayland
2. Switch from Wayland to X11

OBSERVED RESULT
Some global shortcuts (for e.g. Ctrl+Alt+T) stop working. Any hotkeys in Java
with Swing also stop working.

EXPECTED RESULT
Working hotkeys/global shortcuts.

SOFTWARE/OS VERSIONS
KDE neon
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Seems to be:
1. X11 and Wayland have inconsistent settings in kglobalaccel.
2. "Defaults" button (or just removing kglobalshortcutsrc) doesn't fix the
issue.
3. Only one way to fix is reset entire settings. Only after this procedure can
we get working kglobalshortcutsrc for X11.

This is how I fix it:
```
# Temporary reset configs to default settings
mv ~/.config ~/.config-bad
sudo systemctl restart sddm

# Copy the right config
cp ~/.config/kglobalshortcutsrc ~/.config-bad/kglobalshortcutsrc

# Restore old configs
rm -rf ~/.config
mv ~/.config-bad ~/.config
sudo systemctl restart sddm
```

See in attachments:
config.diff - difference between good and bad configs.
kglobalshortcutsrc-good - this config was generated after removing .confg
(good)
kglobalshortcutsrc-bad - this config was generated after removing only
~/.config/kglobalshortcutsrc (bad)

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

Reply via email to