"this._windowTracker.focus_app is null" on Snapshot trying to invoke permission dialog
- Fedora 39, fully updated
- The same with Arch, GNOME 46
Sometimes Snapshot can't show permission dialog, the error is shown:
Apr 01 14:06:58 gnome-shell[1968]: JS ERROR: TypeError: this._windowTracker.focus_app is null
AccessDialogAsync@resource:///org/gnome/shell/ui/accessDialog.js:155:25
_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:373:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:408:34
@resource:///org/gnome/shell/ui/init.js:21:20
Steps to reproduce:
- If the permission dialog worked for the first time:
- Close Snapshot
- Remove permissions with
flatpak permission-remove devices camera
- Open Snapshot, the permission dialog should be invoked
- But sometimes on this step the error above is logged, and Snapshot can't gain the permission.
Note that sometimes the dialog works perfectly, so the steps need to be repeated to trigger the error.
Edited by darkblaze69