From: Christian Dywan Date: Thu, 30 Sep 2010 21:51:46 +0000 (+0200) Subject: Fallback to the name of an app info if there's no executable X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bb34f9f9bad5028a376e5f1227e89abd6d1d49f;p=midori Fallback to the name of an app info if there's no executable Apparently on Windows command line and executable can be NULL, but the name appears to be the executable name. --- diff --git a/katze/katze-utils.c b/katze/katze-utils.c index 134a7d83..d78878a6 100644 --- a/katze/katze-utils.c +++ b/katze/katze-utils.c @@ -104,6 +104,8 @@ katze_app_info_get_commandline (GAppInfo* info) #endif if (!exe) exe = g_app_info_get_executable (info); + if (!exe) + exe = g_app_info_get_name (info); return exe; }