mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
GWin32AppInfo: more checks for UWP apps
UWP apps have no exectuables or commandlines. Check for that.
This commit is contained in:
parent
720b51032c
commit
0ea2f34723
@ -4045,7 +4045,7 @@ g_win32_app_info_get_executable (GAppInfo *appinfo)
|
||||
if (info->app == NULL)
|
||||
return NULL;
|
||||
|
||||
if (info->app->verbs->len > 0)
|
||||
if (info->app->verbs->len > 0 && !info->app->is_uwp)
|
||||
return _verb_idx (info->app->verbs, 0)->executable;
|
||||
|
||||
return NULL;
|
||||
@ -4059,7 +4059,7 @@ g_win32_app_info_get_commandline (GAppInfo *appinfo)
|
||||
if (info->app == NULL)
|
||||
return NULL;
|
||||
|
||||
if (info->app->verbs->len > 0)
|
||||
if (info->app->verbs->len > 0 && !info->app->is_uwp)
|
||||
return _verb_idx (info->app->verbs, 0)->command_utf8;
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user