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

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

Closed
black-snow opened this issue Jul 2, 2023 · 6 comments
Closed

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

black-snow opened this issue Jul 2, 2023 · 6 comments
Assignees

Comments

@black-snow
Copy link

black-snow commented Jul 2, 2023

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

  • Install Ubuntu (22 LTS or later).
  • Install albert as stated here

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
Copy link

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
Copy link
Member

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 ...)

  • most of the times? can you try to be a bit more precise?
  • is most of the times whenever an X window is focused? then env QT_QPA_PLATFORM=xcb albert should help.

it doesn't receive focus

@black-snow
Copy link
Author

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
Copy link
Member

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
Copy link

it return Gnome Shell 44.2

@black-snow black-snow reopened this Jul 5, 2023
@black-snow black-snow changed the title not really working on Ubuntu 22+ albert not receiving focus on Ubuntu 22+ / GNOME 44.2+ Jul 5, 2023
@ManuelSchneid3r
Copy link
Member

Closing as dupe of #1231

@ManuelSchneid3r ManuelSchneid3r closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants