Aizome: Unlock Login Keyring prompt gets buried behind other windows on login

Open
#481 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, rust

Research direction

Start with the existing polkit dialog in desktop/aizome/crates/aizome-shell/src/auth.rs and the window mapping and focus logic in desktop/aizome/crates/aizome-comp-logic/src/wm/mod.rs. Compare the native org.gnome.keyring.SystemPrompter approach with auto-floating known prompt windows; the issue does not specify which approach to take. Done means the keyring unlock prompt stays above apps opening during login.

Written by the indexing model from the issue text.

Description

Summary

When logging into Aizome, if the GNOME Keyring unlock prompt (Unlock Login Keyring / gcr-prompter) appears, other applications starting up right after it open on top and bury the prompt behind them.

Why this happens
  • Unlike Aizome's polkit dialog (desktop/aizome/crates/aizome-shell/src/auth.rs), which aizome-shell renders on a Wayland Layer::Overlay surface with KeyboardInteractivity::Exclusive, aizome-shell does not currently own org.gnome.keyring.SystemPrompter on the session D-Bus.
  • D-Bus falls back to launching GNOME's gcr-prompter, which opens as an ordinary GTK3 Wayland xdg_toplevel (app_id = "gcr-prompter", no parent window).
  • Wayland's xdg-shell has no always-on-top state, so Aizome maps it with float: false (desktop/aizome/crates/aizome-comp-logic/src/wm/mod.rs). When other apps finish mapping during login (window_mapped -> focus_window), they raise above it and hide the prompt.
Expected behavior

The keyring authentication prompt should sit on top of other windows by default (and not get buried behind apps opening during login).

Potential approaches
  • Implement org.gnome.keyring.SystemPrompter natively in aizome-sys + aizome-shell as a Layer::Overlay dialog matching the existing polkit prompt.
  • (And/or auto-float known external auth prompt windows such as gcr-prompter, pinentry-*, ssh-askpass in aizome-comp-logic.)
Dominant language
Rust
Stars
38
Forks
3
Avg merge
1d 8h
Merged PRs (30d)
103

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bitemyapp/sekka

All issues in bitemyapp/sekka

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.