meta_x11_startup_notification_launch: segfault when GDesktopAppInfo instance's filename is NULL
Affected version
ca67d52c..7c2c3e78 (3.31.90 to master at time of writing)
Bug summary
meta_x11_startup_notification_launch
gets the application ID of the passed GDesktopAppInfo
and passes the result along to sn_launcher_set_application_id
, the latter of which assumes the application ID is non-NULL and safe to strdup.
GDesktopAppInfo
instances produced by g_desktop_app_info_new_from_keyfile
and g_app_info_create_from_commandline
have their filename properties set to NULL. The latter is used by spawnApp
within GNOME Shell, although that function doesn't appear to have any callers itself.
Steps to reproduce
- Open Looking Glass in GNOME Shell
- Run
imports.misc.util.spawnApp(['nautilus'])
What happened
Shell crashes
What did you expect to happen
Nautilus starting.