glib r6852 - branches/glib-2-16/gio



Author: michael
Date: Wed Apr 16 17:47:41 2008
New Revision: 6852
URL: http://svn.gnome.org/viewvc/glib?rev=6852&view=rev

Log:
2008-04-16  Michael Meeks  <michael meeks novell com>

        * gdesktopappinfo.c (g_desktop_app_info_new_from_filename): 
        tolerate an empty TryExec= line without failing; nautilus used
        to create launchers with these in previous versions. Fixes #528433



Modified:
   branches/glib-2-16/gio/ChangeLog
   branches/glib-2-16/gio/gdesktopappinfo.c

Modified: branches/glib-2-16/gio/gdesktopappinfo.c
==============================================================================
--- branches/glib-2-16/gio/gdesktopappinfo.c	(original)
+++ branches/glib-2-16/gio/gdesktopappinfo.c	Wed Apr 16 17:47:41 2008
@@ -236,7 +236,7 @@
                                     G_KEY_FILE_DESKTOP_GROUP,
                                     G_KEY_FILE_DESKTOP_KEY_TRY_EXEC,
                                     NULL);
-  if (try_exec)
+  if (try_exec && try_exec[0] != '\0')
     {
       char *t;
       t = g_find_program_in_path (try_exec);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]