1
--- nautilus-2.21.1.orig/libnautilus-private/nautilus-program-choosing.c 2007-12-14 11:24:07.000000000 +0100
2
+++ nautilus-2.21.1/libnautilus-private/nautilus-program-choosing.c 2008-01-07 16:31:13.000000000 +0100
4
#include <libgnome/gnome-url.h>
5
#include <libgnomeui/gnome-uidefs.h>
7
+#include <libnautilus-extension/nautilus-file-info.h>
15
+void launch_gnome_app_install_mimetype(GdkScreen *screen,
17
+ char *uri, char *uri_for_display) {
18
+ char *qmimetype, *quri, *qduri, *command;
20
+ screen = gdk_display_get_default_screen(gdk_display_get_default ());
22
+ qmimetype = g_shell_quote (nautilus_file_info_get_mime_type (file));
23
+ quri = g_shell_quote (uri);
24
+ qduri = g_shell_quote (uri_for_display);
25
+ command = g_strconcat("gnome-app-install --mime-type=",
26
+ qmimetype, " ", quri, " ", qduri,
27
+ (char*)0 /* NB NULL is wrong */);
32
+ eel_gnome_shell_execute_on_screen (command, screen);
39
* nautilus_launch_application:
45
+ launch_gnome_app_install_mimetype (screen,
50
#ifdef NEW_MIME_COMPLETE
51
nautilus_program_chooser_show_invalid_message
52
(GNOME_VFS_MIME_ACTION_TYPE_APPLICATION, file, parent_window);
54
g_warning ("Can't open app: %s\n", error->message);
59
for (l = files; l != NULL; l = l->next) {