Skip to content

omamobile-shell 0.2.70: the file chooser's portal backend no longer waits 25 s at login, and --adopt keeps Files' click policy - #301

Merged
derekross merged 1 commit into
mainfrom
shell-portal-deadlock
Nov 1, 2026
Merged

derekross merged 1 commit into
mainfrom
shell-portal-deadlock

Conversation

@derekross

Copy link
Copy Markdown
Owner

Fixes #277.

The 25-second wait. environment.d/20-omamobile-osk.conf sets GDK_DEBUG=portals and GTK_USE_PORTAL=1 for the session, so that apps open the portal's chooser. Those variables also reached xdg-desktop-portal-gnome. There, GTK 4 asked the main portal for its Settings at start-up, while the main portal was waiting for this backend, and both stalled until D-Bus gave up after 25 s.

  • On my 7 Pro, every boot: the backend started at 14.2 s, and quickshell, the voice overlay, the portal's file chooser and the backend itself logged "Timeout was reached" at 37.9-39.3 s. Somnius saw the same on the 8 Pro.
  • The fix: the backend's drop-in now unsets both variables (UnsetEnvironment=GDK_DEBUG GTK_USE_PORTAL), with a test line.
  • Checked on the 7 Pro with the same line in a temporary drop-in: restarting both portals took under a second instead of 25 s, and nothing timed out. The Settings portal answered, and the GNOME backend still exports FileChooser, so the phone-friendly chooser stays. A boot from the package is still to come.

--adopt. --adopt (0.2.67) now also marks Files' single-tap step (0.2.69) done, so a hand-set-up user who chose double-click keeps it. README and test follow. Found in round 35's commit review.

test/all passes (277 ok). #268 moves to 0.2.71 if this lands first.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d

…aits 25 s at login, and --adopt keeps Files' click policy

The session's GDK_DEBUG=portals and GTK_USE_PORTAL=1 (environment.d, so
that apps open the portal's chooser) also reached xdg-desktop-portal-gnome.
There they made GTK 4 ask the main portal for its Settings at start-up,
while the main portal was waiting for this backend: both stalled until
D-Bus gave up after 25 s. On the 7 Pro the backend started at 14.2 s and
quickshell, the voice overlay, the portal's file chooser and the backend
itself logged "Timeout was reached" at 37.9-39.3 s on every boot, and
Somnius saw the same on the 8 Pro (#277). The backend's drop-in now
unsets both variables. Checked on the 7 Pro with the same line in a
temporary drop-in: restarting both portals took under a second instead of
25 s, nothing timed out, the Settings portal answered, and the GNOME
backend still exports FileChooser.

--adopt (0.2.67) now also marks Files' single-tap step (0.2.69) done, so
a hand-set-up user who chose double-click keeps it; README and the test
follow. Found in round 35's commit review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
@derekross
derekross merged commit df9fe75 into main Nov 1, 2026
2 checks passed
@derekross
derekross deleted the shell-portal-deadlock branch November 1, 2026 23:27
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
…aits 25 s at login, and --adopt keeps Files' click policy (derekross#301)

The session's GDK_DEBUG=portals and GTK_USE_PORTAL=1 (environment.d, so
that apps open the portal's chooser) also reached xdg-desktop-portal-gnome.
There they made GTK 4 ask the main portal for its Settings at start-up,
while the main portal was waiting for this backend: both stalled until
D-Bus gave up after 25 s. On the 7 Pro the backend started at 14.2 s and
quickshell, the voice overlay, the portal's file chooser and the backend
itself logged "Timeout was reached" at 37.9-39.3 s on every boot, and
Somnius saw the same on the 8 Pro (derekross#277). The backend's drop-in now
unsets both variables. Checked on the 7 Pro with the same line in a
temporary drop-in: restarting both portals took under a second instead of
25 s, nothing timed out, the Settings portal answered, and the GNOME
backend still exports FileChooser.

--adopt (0.2.67) now also marks Files' single-tap step (0.2.69) done, so
a hand-set-up user who chose double-click keeps it; README and the test
follow. Found in round 35's commit review.

Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Boot: 25 s timeout before the lock screen on the 8 Pro, with xdg-desktop-portal and its GNOME file chooser backend

1 participant