From 0ea2f34723b1ba285252452b19cb2f9535ce1541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Thu, 4 Jun 2020 15:22:08 +0000 Subject: [PATCH] GWin32AppInfo: more checks for UWP apps UWP apps have no exectuables or commandlines. Check for that. --- gio/gwin32appinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c index ea48e292b..3b117a080 100644 --- a/gio/gwin32appinfo.c +++ b/gio/gwin32appinfo.c @@ -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;