From 3bb34f9f9bad5028a376e5f1227e89abd6d1d49f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 30 Sep 2010 23:51:46 +0200 Subject: [PATCH] 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. --- katze/katze-utils.c | 2 ++ 1 file changed, 2 insertions(+) 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; }