1
1

1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>

* gdesktop.c (desktop_icon_info_open): Run "execute" if the file
	is an executable.  I forgot that gmc_open does not test for
	executable-ness.
Этот коммит содержится в:
Miguel de Icaza 1999-02-04 22:30:54 +00:00
родитель fe79bcbdaa
Коммит c1fad92e34
2 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,9 @@
1999-02-04 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gdesktop.c (desktop_icon_info_open): Run "execute" if the file
is an executable. I forgot that gmc_open does not test for
executable-ness.
1999-02-04 Jonathan Blandford <jrb@redhat.com>
* gnome-file-property-dialog.c (apply_uid_group_change): Bug fix.

Просмотреть файл

@ -26,7 +26,7 @@
#include "gdnd.h"
#include "gpopup.h"
#include "../vfs/vfs.h"
#include "main.h"
/* Name of the user's desktop directory (i.e. ~/desktop) */
#define DESKTOP_DIR_NAME "desktop"
@ -799,10 +799,15 @@ desktop_icon_info_open (DesktopIconInfo *dii)
if (S_ISDIR (fe->buf.st_mode) || link_isdir (fe))
new_panel_at (filename);
else
gmc_open_filename (filename);
else {
if (is_exe (fe->buf.st_mode) && if_link_is_exe (fe))
my_system (EXECUTE_AS_SHELL, shell, filename);
else
gmc_open_filename (filename);
}
file_entry_free (fe);
g_free (filename);
}
void