[Xfce4-commits] <midori:master> Fallback to the name of an app info if there's no executable

Christian Dywan noreply at xfce.org
Fri Oct 1 00:02:01 CEST 2010


Updating branch refs/heads/master
         to 3bb34f9f9bad5028a376e5f1227e89abd6d1d49f (commit)
       from 08691b774553ffb97e6e46ae24b0ab4e1460956f (commit)

commit 3bb34f9f9bad5028a376e5f1227e89abd6d1d49f
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Sep 30 23:51:46 2010 +0200

    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 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index 134a7d8..d78878a 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;
 }
 



More information about the Xfce4-commits mailing list