Skip to content

shellMountOperation: Don't try to read unavailable desktop file

Balló György requested to merge (removed):City-busz-main-patch-77765 into main

If gnome-disk-utility is not installed on the system, its desktop file is unavailable, so we can't get the application's name.

This fixes the following error:

JS ERROR: TypeError: disksApp is null
_init@resource:///org/gnome/shell/ui/shellMountOperation.js:392:20
ModalDialog@resource:///org/gnome/shell/ui/modalDialog.js:32:4
ShellMountPasswordDialog@resource:///org/gnome/shell/ui/shellMountOperation.js:264:4
AskPasswordAsync@resource:///org/gnome/shell/ui/shellMountOperation.js:624:24
_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:368:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:401:34

Merge request reports