Defaults to the "open with" dialog if no "open" action is available

This commit is contained in:
Pierre Pronchery 2007-07-09 11:32:07 +00:00
parent f1047fa183
commit c192dd01ab

View File

@ -322,8 +322,9 @@ static void _on_icon_open(GtkWidget * widget, gpointer data)
if(desktopicon->isdir == 0)
{
if(desktopicon->desktop->mime != NULL) /* XXX ugly */
mime_action(desktopicon->desktop->mime, "open",
desktopicon->path);
if(mime_action(desktopicon->desktop->mime, "open",
desktopicon->path) != 0)
_on_icon_open_with(widget, desktopicon);
return;
}
if((pid = fork()) == -1)