Compare commits

...

1 Commits

Author SHA1 Message Date
Benjamin Berg
07aef68670 startup: Fix possible crash in startup notifications
A GAppInfo is not guaranteed to have a filename or an application (or
rather a desktop ID). Add a check for application_id to be non-NULL
before trying to call sn_launcher_set_application_id, which would crash
otherwise.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1392
2020-07-31 15:27:08 +02:00

View File

@ -355,7 +355,7 @@ meta_x11_startup_notification_launch (MetaX11Display *x11_display,
(gpointer *) &func);
}
if (func)
if (func && application_id)
func (sn_launcher, application_id);
g_module_close (self);