-
Notifications
You must be signed in to change notification settings - Fork 160
schortcut doesn't work #661
Comments
Could you try the following command in console? qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow open |
i did it (qdbus V5) and the main window appear and nothing else. |
That's expected! So you have D-Bus working. qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow translateSelection |
works as expected. |
Great! |
ok thanks |
Glad to hear! |
an other thing: |
Noticed it too, but I afraid that it's a Plasma 6 issue :( |
ok i'm gonna to pointed it out to bugs.kde platform. regards |
It would be great.
No, I didn't open a bug report about this. Feel free to report it. crow-translate/data/io.crow_translate.CrowTranslate.desktop Lines 26 to 32 in c295226
doesn't persist after reboot. |
@Shatur find below the answer from bugs.kde.org: Nicolas Fella nicolas.fella@gmx.de changed:
--- Comment #4 from Nicolas Fella nicolas.fella@gmx.de --- Please contact the application's author and ask them to implement the Global |
You reported it wrong. Shortcuts do work. They don't persist between reboots, that's the bug. |
This was referring to global shortcuts based on QHotKey, which does not work on Wayland. The proper way to do these kinds of shortcuts is to use the portal. Defining shortcuts via desktop file actions is supposed to work, and I see where it's going wrong. https://invent.kde.org/plasma/kglobalacceld/-/merge_requests/46 fixes that |
Yep! We support both,
I guess so. Shortcuts from |
Opened a bug report: https://bugs.kde.org/show_bug.cgi?id=484093 |
For some reason in-app shortcuts are not working in gnome (wayland session) either. But setting the same shortcut with gnome system shortcuts and adding this line as a command works as expected. |
Yes, it's expected. Wayland doesn't provide API for global shortcuts, you need to register them yourself. KDE just have a convenient feature to define shortcuts in |
Oh, didn't know about this KDE feature. Thanks. Maybe a "how to translate selected text in wayland" explanation in the readme helps non-techie users like me. Anyway, thanks for creating this amazing app! |
Yes, I think it's a good idea... Maybe you can open a PR? |
Sure! Already done. |
@Shatur : the same issue still occured.
the code above works only if i replace
Operating System: EndeavourOS |
It's because on your system you have |
the crow shortcuts does work:
Steps to reproduce
Expected behavior
translate my text selection or at least see my selection in the main window
Environment (archlinux)
Additional context
debug info: if you give me a Strace statement to provide you technical info about this issue because i do not observe any relevant info about shortcut issue so fare
The text was updated successfully, but these errors were encountered: