]> spindle.queued.net Git - midori/commitdiff
Fallback to the name of an app info if there's no executable
authorChristian Dywan <christian@twotoasts.de>
Thu, 30 Sep 2010 21:51:46 +0000 (23:51 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 30 Sep 2010 21:51:46 +0000 (23:51 +0200)
Apparently on Windows command line and executable can be NULL,
but the name appears to be the executable name.

katze/katze-utils.c

index 134a7d8340fb74ca7a1d3e02a91f97719482540b..d78878a6d6c57dc8fa5f08aa88ceb01be2b30f8e 100644 (file)
@@ -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;
 }