diff options
author | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-06-01 12:11:54 +0000 |
---|---|---|
committer | Maciej Stachowiak <mstachow@src.gnome.org> | 2000-06-01 12:11:54 +0000 |
commit | 93c80d6e5b138e4262e9cd875dbc6af77d23d11f (patch) | |
tree | 40edce788b11fe1e16996098128ff203f01e8c12 /test/test-nautilus-mime-actions.c | |
parent | 8b14e59ee72847e0555d9495b80277283ea22f51 (diff) | |
download | nautilus-93c80d6e5b138e4262e9cd875dbc6af77d23d11f.tar.gz |
Task 1057: Terminal-based programs should open into a new terminal window
* libnautilus-extensions/nautilus-program-choosing.h,
libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application): Take a GnomeVFSMimeApplication *
instead of a command string; add gnome-terminal -x
(nautilus_launch_application_from_command): Old version that takes
a command string renamed. Also, uses `system' instead of `execlp',
so command-line arguments in the command string work.
* libnautilus-extensions/nautilus-program-chooser.c
(launch_mime_capplet): Adjusted to conform.
* src/file-manager/fm-directory-view.c
(fm_directory_view_launch_application): Likewise.
* src/nautilus-sidebar.c: (command_button_callback,
nautilus_sidebar_chose_application_callback, add_command_buttons):
Likewise.
* test/test-nautilus-mime-actions.c (print_application): Show the
requires_terminal field for applications.
Diffstat (limited to 'test/test-nautilus-mime-actions.c')
-rw-r--r-- | test/test-nautilus-mime-actions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test-nautilus-mime-actions.c b/test/test-nautilus-mime-actions.c index a51d31399..18a3929f1 100644 --- a/test/test-nautilus-mime-actions.c +++ b/test/test-nautilus-mime-actions.c @@ -38,10 +38,11 @@ print_application (GnomeVFSMimeApplication *application) if (application == NULL) { puts ("(none)"); } else { - printf ("name: %s\ncommand: %s\ncan_open_multiple_files: %s\ncan_open_uris: %s\n", + printf ("name: %s\ncommand: %s\ncan_open_multiple_files: %s\ncan_open_uris: %s\nrequires_terminal: %s\n", application->name, application->command, (application->can_open_multiple_files ? "TRUE" : "FALSE"), - (application->can_open_uris ? "TRUE" : "FALSE")); + (application->can_open_uris ? "TRUE" : "FALSE"), + (application->requires_terminal ? "TRUE" : "FALSE")); } } |