mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
appinfo: Don't try DBusActivatable with load_from_keyfile
We can't get the name of the filename, so we can't determine the application ID. We'll have to fallback on Exec= for this case. https://bugzilla.gnome.org/show_bug.cgi?id=709326
This commit is contained in:
parent
5d7a7df867
commit
e0ffd5c184
@ -461,7 +461,10 @@ g_desktop_app_info_load_from_keyfile (GDesktopAppInfo *info,
|
||||
info->path = NULL;
|
||||
}
|
||||
|
||||
if (bus_activatable)
|
||||
/* Can only be DBusActivatable if we know the filename, which means
|
||||
* that this won't work for the load-from-keyfile case.
|
||||
*/
|
||||
if (bus_activatable && info->filename)
|
||||
{
|
||||
gchar *basename;
|
||||
gchar *last_dot;
|
||||
|
Loading…
Reference in New Issue
Block a user