Bug 494403 - Shortcuts from Plasma 5 Custom Shortcut Service do not upgrade properly to Plasma 6 shortcuts
Summary: Shortcuts from Plasma 5 Custom Shortcut Service do not upgrade properly to Pl...
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keys (other bugs)
Version First Reported In: 6.1.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-10 10:03 UTC by Stephan Johach
Modified: 2025-01-17 11:46 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Settings page of the "Custom Shortcuts Service" (449.38 KB, image/png)
2024-10-12 14:58 UTC, Stephan Johach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Johach 2024-10-10 10:03:04 UTC
SUMMARY
After switching to plasma 6.x my shortcuts for applications are no longer working.
I have the following shortcuts defined in System settings / Keyboard / Shortcuts / Custom Shortcuts Service

Firefox -> Meta+F1
Konsole -> Meta+F2

and some more.

I tried with Wayland and X11 sessions. I tried another keyboard to the same effect.

It worked in Plasma 5.x.

for example:
The shortcut is defined in the GUI
Firefox -> Meta+F1

When pressing Meta+F1 nothing happens

Is this broken or is the Custom Shortcuts Service no longer supported with Plasma 6.x? The Icon is
somehow suspiciously generic. If so, the settings should be removed from "Settings". 
How is this supposed to work in Plasma 6.x?

STEPS TO REPRODUCE
1.  Define the shortcut Firefox -> Meta+F1 in Custom Shortcuts Service
2.  Press Meta+F1

OBSERVED RESULT
Nothing happens.

Opening Konsole and pressing 
Meta+F1 shows  "P"
Meta+F2 shows "Q"
Meta+F2 shows "R"

as the resulting "key". 

EXPECTED RESULT

When pressing Meta+F1 "Firefox" is started.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.15
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.11.2-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen Threadripper 1950X 16-Core Processor
Memory: 31,2 GiB of RAM
Graphics Processor: AMD Radeon RX 560 Series

ADDITIONAL INFORMATION

This is an upgrade from Plasma 5.27.x.
Comment 1 Akseli Lahtinen 2024-10-10 13:15:57 UTC
I couldn't repro the issue in Plasma 6.2

1. Open shortcuts settings
2. Add new
3. Application
4. Firefox
5. Give it a shortcut

Custom shortcuts service is not a thing anymore AFAIK, so it might be that the old shortcuts were not properly upgraded to new system, or something else went wrong. That itself is a bug, but I have no means to test that currently.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 2 Stephan Johach 2024-10-10 14:27:16 UTC
Thanks for the quick reply. I really appreciate this!

(In reply to Akseli Lahtinen from comment #1)
> I couldn't repro the issue in Plasma 6.2
> 
> 1. Open shortcuts settings
> 2. Add new
> 3. Application
> 4. Firefox
> 5. Give it a shortcut

Did this now, works like a charm. So it seems the old shortcuts were the problem not shortcuts per se.

> Custom shortcuts service is not a thing anymore AFAIK, so it might be that
> the old shortcuts were not properly upgraded to new system, or something
> else went wrong. That itself is a bug, but I have no means to test that
> currently.

Seems so. If I can provide any information from my system, feel free to ask.

There is also another suspicious entry "plasmawindowed". These are probably
Plasma 5.x artifacts which are no longer used and do not work anymore.

I found them in ~/.config/kglobalshortcutsrc

At least the keys are reset if (Konsole here is set to "none, none") when assigning an Application shortcut with the same keys,
so Plasma 6.x seems a least to know about them. Dunno why they do not work at all.

[khotkeys]
_k_friendly_name=Custom Shortcuts Service
{01bd1271-9b07-4984-8432-3edfe09b68c9}=none,none,Konsole
{24d9a097-2e40-44bd-ad9f-83e87fdeba28}=Meta+F7,none,Moneyplex
{4fabc148-1732-4391-8339-995a3426e1de}=Meta+Num+*,none,TogglePulsAudioVolume
{5c3f6719-200b-474e-81eb-af19230594ad}=none,none,Firefox
{5d17f94d-3a43-4c8c-b41b-374e3734b49d}=Meta+F4,none,Dolphin
{61abd3f4-46f6-4df4-b803-8c8bc101d24a}=Meta+Num++,none,PulsAudioVolumeUp
{63fef75e-388d-446a-a9d7-ab44b02a9083}=Meta+Num+-,none,PulsAudioVolumeDown
{768bba6f-d843-4b66-a24f-894bb9ba06b2}=none,none,KeepassXC
{7e8a8b79-10d3-4043-8e14-357a26f84157}=Meta+Ctrl+Down,none,Open/Close drive
{92bf6638-f64b-485f-8fd5-df40a133f2b6}=Launch (1),none,Calculator
{d03619b6-9b3c-48cc-9d9c-a2aadb485550}=none,none,Search
{e3bea262-1af0-4669-ba65-d9ffc3d4ed99}=Launch Mail,none,Kontakt

and

[plasmawindowed]
_k_friendly_name=plasmawindowed
clear-history=none,none,Clear Clipboard History
clipboard_action=none,Ctrl+Alt+X,Enable Clipboard Actions
cycleNextAction=none,none,Next History Item
cyclePrevAction=none,none,Previous History Item
edit_clipboard=none,none,Edit Contents...
repeat_action=none,Ctrl+Alt+R,Manually Invoke Action on Current Clipboard
show-on-mouse-pos=none,none,Open Klipper at Mouse Position
Comment 3 Akseli Lahtinen 2024-10-10 15:01:52 UTC
Thanks for the config snippets, those should help with creating test entries for the upgrade system!
Comment 4 Stephan Johach 2024-10-11 09:41:57 UTC
Just for your information. The section "Custom Shortcuts Service" is also shown on my Laptop running KDE Neon.
Comment 5 Nate Graham 2024-10-11 18:28:37 UTC
> or is the Custom Shortcuts Service no longer supported with Plasma 6.x?
That's correct.

> The Icon is somehow suspiciously generic. If so, the settings should be removed from "Settings".
We did remove the Custom Shortcuts page from System Settings. if you're still seeing it, I think this is likely going to be a packaging/deployment bug of some sort.

> How is this supposed to work in Plasma 6.x?
IIRC there was supposed to be some kind of automatic upgrade, but it was always going to be imperfect due to the diversity of what the removed Custom Shortcuts service offered.
Comment 6 Stephan Johach 2024-10-12 14:58:49 UTC
Created attachment 174740 [details]
Settings page of the "Custom Shortcuts Service"

Just to be sure we talk about the same kind of "Settings page". A screenshot.
Comment 7 Nate Graham 2024-10-15 22:50:01 UTC
So yeah, let's get on the same page: that is not the "Custom Shortcuts" service, that is just the "Shortcuts" Service. The thing labeled "Custom Shortcuts" was deleted in Plasma 6.0.0.
Comment 8 Josh 2025-01-17 11:46:13 UTC
Hi, I had a 'Custom Shortcuts Service' entry in System Settings > Keyboard > Shortcuts > System Services and I upgraded from Plasma 5 to 6 as part of a Kubuntu upgrade.

Based on this bug report I've just deleted Custom Shortcuts Service because I hope it resolves a shortcut issue I'm having (https://bugs.kde.org/show_bug.cgi?id=497507) where some shortcuts do not work after a reboot.

My details:
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-9-generic (64-bit)
Graphics Platform: Wayland