summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-program-choosing.h
diff options
context:
space:
mode:
authorMaciej Stachowiak <mstachow@src.gnome.org>2000-11-12 05:28:41 +0000
committerMaciej Stachowiak <mstachow@src.gnome.org>2000-11-12 05:28:41 +0000
commit16062e0e4058d6bacb370d19e79031e6db39f450 (patch)
tree0f5c877fe96852f91729bffac9e1e036d19f131b /libnautilus-extensions/nautilus-program-choosing.h
parente821cf8d2801281ba86c8e53bd14bdca6f83dae8 (diff)
downloadnautilus-16062e0e4058d6bacb370d19e79031e6db39f450.tar.gz
Fixed bugzilla.eazel.com bugs 4051 (applications which require
terminals don't get them) and 4072 (mime types: command= string can't take args?). * libnautilus-extensions/nautilus-gnome-extensions.c (nautilus_gnome_terminal_shell_execute): Don't take the shell as an argument, just use "/bin/sh", there's no reason to use any other shell for the purpose of launching a terminal like this. (nautilus_gnome_open_terminal): Don't pass user shell to `nautilus_gnome_terminal_shell_execute'; handle `gnome-terminal' properly by passing it "-x" instead of incorrectly trying to quote the command. * libnautilus-extensions/nautilus-gnome-extensions.h: Fix minor typo. * libnautilus-extensions/nautilus-program-choosing.h, libnautilus-extensions/nautilus-program-choosing.c: (nautilus_launch_application_from_command): Add a use_termial argument and if passed, launch the program in a terminal; minor fixes to the way non-terminal-requiring programs are launched as well, including not quoting the command, so that it can include command line arguments (if the command name includes a space, it had better be quoted already). (nautilus_launch_application): Use the new `use_terminal' argument when calling `nautilus_launch_application_from_command'. * libnautilus-extensions/nautilus-program-chooser.c: (launch_mime_capplet): Use the new `use_terminal' argument when calling `nautilus_launch_application_from_command'. * src/file-manager/fm-desktop-icon-view.c (change_desktop_background_menu_item_callback): Use the new `use_terminal' argument when calling `nautilus_launch_application_from_command'. * src/file-manager/fm-directory-view.c (activate_callback): Use the new `use_terminal' argument when calling `nautilus_launch_application_from_command'. Also, shell-quote the command, since nautilus_application_launch_from_command won't do that for you any more.
Diffstat (limited to 'libnautilus-extensions/nautilus-program-choosing.h')
-rw-r--r--libnautilus-extensions/nautilus-program-choosing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-program-choosing.h b/libnautilus-extensions/nautilus-program-choosing.h
index 0c0d6fa70..ab2f847fc 100644
--- a/libnautilus-extensions/nautilus-program-choosing.h
+++ b/libnautilus-extensions/nautilus-program-choosing.h
@@ -54,6 +54,7 @@ void nautilus_launch_application (GnomeVFSMimeApplication
const char *uri,
GtkWindow *parent_window);
void nautilus_launch_application_from_command (const char *command_string,
- const char *parameter);
+ const char *parameter,
+ gboolean use_terminal);
#endif /* NAUTILUS_PROGRAM_CHOOSING_H */