Bug 483086 - Keyboard shortcuts not work for third-party apps
Summary: Keyboard shortcuts not work for third-party apps
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-10 08:49 UTC by Ali
Modified: 2024-03-11 08:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crow Translate (142.85 KB, image/png)
2024-03-10 08:49 UTC, Ali
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ali 2024-03-10 08:49:30 UTC
Created attachment 166854 [details]
Crow Translate

SUMMARY
***
After update to 6 keyboard shortcuts not work for third-party apps, like Crow Translate, NekoRay.
***

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon 6.0
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.5.0-25-generic (64-bit)
Comment 1 Nicolas Fella 2024-03-10 13:11:19 UTC
Are you using Wayland or X11?
Comment 2 Ali 2024-03-10 15:07:23 UTC
(In reply to Nicolas Fella from comment #1)
> Are you using Wayland or X11?

wayland
Comment 3 Cherkah 2024-03-10 16:27:38 UTC
yes i can confirm that issue for third-partie apps like crow-translate.
 

SUMMARY:
1) select the app  keyboard shortcuts settings via the select box application.
2) validate
3) play with the shortcut of the third-party app
4) reboot the system
5) look for the third-partie apps in the keyboard shortcuts settings section: missing

SOFTWARE/OS VERSIONS:
Linux/KDE Plasma: KDE  6.0
Qt Version: 6.5.0-25-generic (64-bit)
Operating System: EndeavourOS 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 4 Nicolas Fella 2024-03-10 20:44:33 UTC
These applications need to be adjusted to support global shortcuts on Wayland.

Please contact the application's author and ask them to implement the Global Shortcuts portal: https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.GlobalShortcuts.html
Comment 5 Cherkah 2024-03-11 05:24:22 UTC
(In reply to Nicolas Fella from comment #4)
> These applications need to be adjusted to support global shortcuts on
> Wayland.
> 
> Please contact the application's author and ask them to implement the Global
> Shortcuts portal:
> https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.
> GlobalShortcuts.html

 Shortcuts do work.
but looks like global shortcuts registered by .desktop files like this:

```
crow-translate/data/io.crow_translate.CrowTranslate.desktop

 [Desktop Action TranslateSelectedText] 
 Exec=qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow translateSelection 
 Name=Translate selected text 
 Name[fi_FI]=Käännä valittu teksti 
 Name[pt_PT]=Traduzir o texto selecionado 
 Name[ru_RU]=Перевести выделенный текст 
 X-KDE-Shortcuts=Ctrl+Alt+E 
```
doesn't persist after reboot.
that's the bug.

ref.  https://github.com/crow-translate/crow-translate/issues/661
Comment 6 Nicolas Fella 2024-03-11 08:40:44 UTC
This is a separate issue. Please create a new report