diff options
author | Carlos Soriano <csoriano@redhat.com> | 2018-05-18 17:04:04 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestas.kulik@gmail.com> | 2018-05-21 06:29:14 +0000 |
commit | ac886102c23c8eae4759a240193473e1b00f7352 (patch) | |
tree | b9ea997ae55a2ec3357482e0448a72e03f482629 /src/nautilus-mime-actions.h | |
parent | ce61f4848d6b06b9f4206d2af24de3143c67c7e9 (diff) | |
download | nautilus-ac886102c23c8eae4759a240193473e1b00f7352.tar.gz |
general: Revert to allow running binaries and scripts
Recently we removed the ability to launch binaries and scripts in
commit 3a22ed5b8e3bb.
A few cases appeared that we need to support, specially for enterprise
and content creators. Specifically, cases similar to https://gitlab.gnome.org/GNOME/nautilus/issues/434
This also shows that is hard to predict cases like these, as some
complex setups might be needed for specific workflows.
This commits allow to run binaries and scripts as before, and further
investigation in these cases need to be done if we ever want to tweak
the workflow of running binaries.
More discussion about improving binaries/script handling is being
proposed and discussed in https://gitlab.gnome.org/GNOME/nautilus/issues/443
Diffstat (limited to 'src/nautilus-mime-actions.h')
-rw-r--r-- | src/nautilus-mime-actions.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/nautilus-mime-actions.h b/src/nautilus-mime-actions.h index 1725b8c1d..29be6b07c 100644 --- a/src/nautilus-mime-actions.h +++ b/src/nautilus-mime-actions.h @@ -39,14 +39,16 @@ gboolean nautilus_mime_file_extracts (Nauti gboolean nautilus_mime_file_opens_in_external_app (NautilusFile *file); gboolean nautilus_mime_file_launches (NautilusFile *file); void nautilus_mime_activate_files (GtkWindow *parent_window, - NautilusWindowSlot *slot, - GList *files, - NautilusWindowOpenFlags flags, - gboolean user_confirmation); + NautilusWindowSlot *slot, + GList *files, + const char *launch_directory, + NautilusWindowOpenFlags flags, + gboolean user_confirmation); void nautilus_mime_activate_file (GtkWindow *parent_window, - NautilusWindowSlot *slot_info, - NautilusFile *file, - NautilusWindowOpenFlags flags); + NautilusWindowSlot *slot_info, + NautilusFile *file, + const char *launch_directory, + NautilusWindowOpenFlags flags); gint nautilus_mime_types_get_number_of_groups (void); const gchar* nautilus_mime_types_group_get_name (gint group_index); -GList* nautilus_mime_types_group_get_mimetypes (gint group_index); +GList* nautilus_mime_types_group_get_mimetypes (gint group_index);
\ No newline at end of file |