NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.48k stars 12.98k forks source link

Application keyboard shortcuts in KDE does not work anymore... for some applications only! #106796

Open tobiasBora opened 3 years ago

tobiasBora commented 3 years ago

Describe the bug Since today, I have a very strange bug: the shortcut Ctrl-Alt-T that I configured for running Konsole in KDE Plasma suddently stopped working. I tried to reassign it some shortcuts, either via right clicking on the KDE icon > Edit applications, or via the KDE configuration > Shortcuts > Global shortcuts, and none of them work...

But now the fun starts: if I configure this exact same shortcut for Dolphin instead... it works! Dolphin seems the same application that works, I tried with Firefox and Konsole, and with different shortcuts (Ctrl-Alt-T, Ctrl-Alt-M, Meta-F...). Dolphin accepts them all, and Firefox/Konsole/... do not accept it.

The only difference I can see between Dolphin and Konsole/Firefox is that Dolphin has a shortcut configured by default on my KDE (Meta-e).

I tried to create a new fresh user to see if the problem was from some configuration files... So on a new user, for some reason, Ctrl-Alt-T is already running the konsole by default (no idea why, I can't find where this is configured), so I tried to setup a new shortcut, like Ctrl-Alt-M/Ctrl-Alt-N to Konsole/Firefox/... and the problem is exactly the same: it's possible to assign any key on Dolphin, not any key to Firefox/Konsole.

I tried to look at the file ~/.config/kglobalshortcutsrc, and both entries look pretty similar, in both my current user, and the new user I created:

# My user:
$ cat ~/.config/kglobalshortcutsrc | grep konsole -A5
[org.kde.konsole.desktop]
NewTab=none,none,Ouvrir un nouvel onglet
NewWindow=none,none,Ouvrir dans une nouvelle fenêtre
_k_friendly_name=Lancer Konsole
_launch=Ctrl+Alt+N,none,Lancer Konsole

$ cat ~/.config/kglobalshortcutsrc | grep dolphin -A3
[org.kde.dolphin.desktop]
_k_friendly_name=Dolphin
_launch=Ctrl+Alt+M,Meta+E,Dolphin

# New user:
$ cat ~/.config/kglobalshortcutsrc | grep dolphin -A3
[org.kde.dolphin.desktop]
_k_friendly_name=Dolphin
_launch=Ctrl+Alt+M,Meta+E,Lancer Dolphin

$ cat ~/.config/kglobalshortcutsrc | grep konsole -A3
[org.kde.konsole.desktop]
_k_friendly_name=Konsole
_launch=Ctrl+Alt+N,none,Lancer Konsole

Note that the other KDE shortcuts like Alt-F2, Alt-Space... work. Also, the personalized shortcuts works, so for now I created a personalized shortcut to be able to run the console as a workaround, but it would be much better to find the actual problem.

To Reproduce Steps to reproduce the behavior:

  1. Install on latest nixos unstable (commit e9158eca70a) plasma:
    # Enable the KDE Desktop Environment.
    services.xserver.displayManager.sddm.enable = true;
    services.xserver.desktopManager.plasma5.enable = true;
  2. Create a new shortcut by right clicking in the KDE logo at the very bottom left part of the default bar, then edit applications and add a shortcut to Dolphin, like Ctrl+Alt+M: see that it works. Set similarly a shortcut to Konsole or Firefox: see that it fails. You can also go in System configurations > Shortcuts > Global shortcuts, then click on the "+" and select Firefox/Konsole directly from here:

Expected behavior I'd expect global shortcuts for Firefox/Konsole to work.

Screenshots image image

Notify maintainers @FRidh Not sure who is the maintainer, but I saw you created a thread on Qt issue here https://github.com/NixOS/nixpkgs/issues/102340, so you may have more information. Note that it could be completely possible that this bug is an upstream bug, but since I think to remember reading that NixOs was running Plasma with an unsupported Qt version, I thought it was better to first report it here.

Metadata

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
FRidh commented 3 years ago

I also noticed some issues with shortcuts, but did not put any more thought in it.

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info

2shrestha22 commented 3 years ago

Does not work for me. I had to install khotkeys to make custom shortcuts.

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info

ShalokShalom commented 8 months ago

I do experience that my custom shortcuts for decreasing and increasing volume do fail all out of a sudden.

chermnyx commented 2 months ago

For me on plasma 6 from nixos-unstable, spectacle shortcuts are being reset on each relogin

Windowsxd commented 1 month ago

For me on plasma 6 from nixos-unstable, spectacle shortcuts are being reset on each relogin

Same here