Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Global shortcut does not work on Linux using Wayland #1170

Open
ke1v opened this issue Aug 16, 2024 · 4 comments
Open

[Bug] Global shortcut does not work on Linux using Wayland #1170

ke1v opened this issue Aug 16, 2024 · 4 comments
Assignees

Comments

@ke1v
Copy link
Collaborator

ke1v commented Aug 16, 2024

Describe the bug
Global hotkeys are not available on Linux under GNOME Wayland sessions.

To Reproduce
Steps to reproduce the behavior:

  1. Launch ueli on GNOME Wayland
  2. Hide ueli window
  3. Press hotkey
  4. Ueli does not reappear

Expected behavior
Ueli should reappear when using the global hotkey

Environment

  • OS: [Linux]
  • Version 9.3.2

Additional context
This appears to be an upstream bug (electron/electron#38288) in Electron, as Wayland does not provide a way for Electron to register global hotkeys.

@ke1v ke1v added the bug label Aug 16, 2024
@ke1v
Copy link
Collaborator Author

ke1v commented Aug 16, 2024

I'm proposing a workaround that seems to be popular with other apps, where calling the executable with an argument flag (ie. ueli --toggle) will dispatch the same event in the main process (using Electron's requestSingleInstanceLock) as pressing the global hotkey. If anyone has a better idea please feel free to suggest them.

@Neitex
Copy link

Neitex commented Aug 23, 2024

+1 to the proposal above. This solution would also enable ueli's usage outside of full desktop environments. For instance, setting XDG_SESSION_DESKTOP=gnome makes application search extension work smoothly even with Hyprland Wayland compositor (tested on ueli commit 737655b). So this workaround would make ueli a decent alternative to, for example, ULauncher across various Linux setups, not just within major desktop environments.

@ke1v
Copy link
Collaborator Author

ke1v commented Sep 18, 2024

This solution would also enable ueli's usage outside of full desktop environments.

I'm curious as to what you mean by this?

setting XDG_SESSION_DESKTOP=gnome makes application search extension work

BTW this should be fixed in 9.3.5 (although Hyprland may not have working icon support)

@Neitex
Copy link

Neitex commented Sep 18, 2024

I'm curious as to what you mean by this?

I mean the fact that if we can have a CLI switch like this, it could also render ueli fully usable in bare window managers like Hyprland, sway etc. without needing full-blown GNOME, KDE etc.

BTW this should be fixed in 9.3.5 (although Hyprland may not have working icon support)

Thanks, I'll be sure to check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants