albertlauncher / albert

A fast and flexible keyboard launcher
https://albertlauncher.github.io
Other
7.24k stars 304 forks source link

albert not receiving focus on Ubuntu 22+ / GNOME 44.2+ #1261

Closed black-snow closed 1 year ago

black-snow commented 1 year ago

Either, somehow, nobody is using albert on vailla Ubuntu or I'm blind. Or there's weird behaviour just on my machine.

Description

I installed albert on a Ubuntu 23.04 (lunar) and it "barely" works. First of all, my shortcut (ctrl+space) doesn't toggle albert most of the time (some times it works ...). So I added a global shortcut with albert toggle, which seems to work fine.
But when albert toggles, it doesn't receive focus (which renders it quite useless). I actively have to click the window. Hence, I cannot close it with clicking anywhere or hitting ESC for it isn't focused in the first place.

I installed albert via https://software.opensuse.org/download.html?project=home:manuelschneid3r&package=albert (which only mentions xUbuntu).

albert also doesn't seem to keep the autostart flag.

I tried it on Ubuntu LTS as well with the exact same behaviour.

Expected behavior

Configured shortcut toggles albert window, which receives the focus.

Steps to reproduce

Source

home:manuelschneid3r/xUbuntu_23.04

Debug output

``` Albert version: 0.21.1 Build date: Jun 27 2023 10:43:37 Qt version: 6.4.2 Build ABI: x86_64-little_endian-lp64 Arch (build/current): x86_64/x86_64 Kernel (type/version): linux/6.2.0-24-generic OS: Ubuntu 23.04 OS (type/version): ubuntu/23.04 $QT_QPA_PLATFORMTHEME: Platform name: wayland Font: Ubuntu,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 Binary location: /usr/bin/albert $PWD: /home/xxx $SHELL: /bin/bash $LANG: en_US.UTF-8 Language: English Locale: en_US $XDG_SESSION_TYPE: wayland $XDG_CURRENT_DESKTOP: ubuntu:GNOME $DESKTOP_SESSION: ubuntu $XDG_SESSION_DESKTOP: ubuntu Icon theme: Yaru 12:49:39 [crit:albert] Application has not been terminated graciously 12:49:39 [debg:albert] Checking for a running instance… 12:49:39 [info:albert] There is another instance of albert running. ```

/edit: env QT_QPA_PLATFORM=xcb albert won't help.

FlorianMartinez01 commented 1 year ago

I'm in similar case. I'm on Ubuntu 23.04 with last update of albert (0.21.1) and I also have the issue about the focus. Hope someone have a fix idea.

ManuelSchneid3r commented 1 year ago

Please be more specific in the issue title. "not really working on Ubuntu 22+" is not really something i can work with efficiently.

only mentions xUbuntu

the x in this case is a placeholder for things like X,K,L or whateverbuntu is out there.

shortcut (ctrl+space) doesn't toggle albert most of the time (some times it works ...)

it doesn't receive focus

black-snow commented 1 year ago

Thanks for the quick reply. Sounds like #1231 already addressed the issue.

Autostart and global shortcut isn't a big issue. Gonna close this.

ManuelSchneid3r commented 1 year ago

Sounds like #1231 already addressed the issue.

it depends. #1231 is a regression in version 44.1. What does gnome-shell --version return on your system?

FlorianMartinez01 commented 1 year ago

it return Gnome Shell 44.2

ManuelSchneid3r commented 1 year ago

Closing as dupe of #1231