mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
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.
This commit is contained in:
parent
8b14e59ee7
commit
93c80d6e5b
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue