Diodon hotkey menu not useable by keyboard within Wayland

Bug #2029305 reported by Alexey
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Diodon
Confirmed
High
Unassigned

Bug Description

Hello team,

After this hotkey change [1] Diodon became much less usable than before. I've setup a hotkey in DE preferences as recommended in [1]. However there are following issues:

 1. Diodon menu appears in random places on the screen, not on top of cursor or mouse pointer.
 2. Arrows and j/k keys don't work in the menu anymore. Even after it is focused manually.
 3. No paste after item is selected in the menu.
 4. The menu is impossible to close. Esc key doesn't work. Some item needs to be selected for menu to go away.
 5. Configured hotkey doesn't close the menu.

My setup:

    DE: Wayland + Unity

    $ diodon --version
    Diodon 1.13.0

    $ cat /etc/os-release
    PRETTY_NAME="Ubuntu 22.04.2 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.2 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=jammy

References:

 1. https://esite.ch/2015/07/using-custom-shortcuts-of-de-as-diodon-hotkey/

---
Regards, Alexey

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks for your report.

The issue is not because of the changes within Diodon but because of Wayland. Whenever Diodon opens over a Wayland app, it can only be used with the mouse. If it opens over an app running in X compatible mode within a Wayland session, it still seems to work using the keyboard.

I do not know how to fix this with an approach which works on all desktop environments. Tried to use different ways to call GTK Menu popup but was not successful.

If anyone has some insight how this could be fixed. Please let me know. A PR of course would also be very welcome. It certainly needs experimenting.

summary: - Diodon menu unusable after hotkey updates
+ Diodon hotkey menu not useable by keyboard within Wayland
Changed in diodon:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Alexey (kuznecov-alexey) wrote :

Hi Oliver,

thank you for clarification. I didn't realize the issue was with Wayland.

Revision history for this message
santropedro (santropedro) wrote (last edit ):

Hi. @Oliver Sauder (sao). I think I have the same kind of issue. I'll hold off reporting a bug to see if you confirm to me this is the same, also I'm new to reporting bugs here, so if you see this message, you can respond so I know this is a good way to talk here. I'm on a totally standard, updated, free, stable Ubuntu installation, gnome version 42.9, windowing system: wayland.

$ cat /etc/os-release

PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

$diodon --version
Diodon 1.13.0

$ uname -a
Linux pepe-Lenovo-ideapad-300-15ISK 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

The 5 points he mentioned apply to me (point 3 in particular makes it quite less usable, every paste takes the diodon shortcut (which I made work with the link in the hotkeys tab, that's great), a click selecting which text, until know it would be great, but because it doesn't paste it demands an additional ctrl+v), in fact they apply on many apps: "gnome terminal" (the default one, the "about" says: Version 3.44.0 for GNOME 42, A terminal emulator for the GNOME desktop
Using VTE version 0.68.0 +BIDI +GNUTLS +ICU +SYSTEMD), firefox, any app from libre office, gedit, and on the standard "Ubuntu settings", which, I assume because I'm a noob (it takes a lot of work to even write this report, I don't imagine how much it will take to fix the bug) some of these are a "wayland app".
It does work on: chrome, vlc (installed from the snap-store) for example pasting in an open file menu it works well.

Update: Very interesting: I have just tried CopyQ, believe it or not, it demonstrates an identical failure! It succeeds/fails to paste into the same apps as Diodon does. I found this comment (and many others if you search on the open issues "wayland" like here https://github.com/hluk/CopyQ/issues/2342) by it's dev, https://github.com/hluk/CopyQ/issues/2136#issuecomment-1304754236 it references a possible workaround I'll try it. Is it possible an analog workaround like this could also fix Diodon?

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks santropedro for the additional details and yes this is the same issue.

I do not know how to solve it within Wayland and whether it is actually solvable with a simple menu or whether it needs a more desktop environment specific approach.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.