summaryrefslogtreecommitdiff
path: root/src/nautilus-global-preferences.h
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@redhat.com>2018-05-18 17:04:04 +0200
committerErnestas Kulik <ernestas.kulik@gmail.com>2018-05-21 06:29:14 +0000
commitac886102c23c8eae4759a240193473e1b00f7352 (patch)
treeb9ea997ae55a2ec3357482e0448a72e03f482629 /src/nautilus-global-preferences.h
parentce61f4848d6b06b9f4206d2af24de3143c67c7e9 (diff)
downloadnautilus-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-global-preferences.h')
-rw-r--r--src/nautilus-global-preferences.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/nautilus-global-preferences.h b/src/nautilus-global-preferences.h
index 439f20f1f..0ccc1937b 100644
--- a/src/nautilus-global-preferences.h
+++ b/src/nautilus-global-preferences.h
@@ -51,6 +51,9 @@ typedef enum
/* Drag and drop preferences */
#define NAUTILUS_PREFERENCES_OPEN_FOLDER_ON_DND_HOVER "open-folder-on-dnd-hover"
+/* Activating executable text files */
+#define NAUTILUS_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION "executable-text-activation"
+
/* Installing new packages when unknown mime type activated */
#define NAUTILUS_PREFERENCES_INSTALL_MIME_ACTIVATION "install-mime-activation"
@@ -107,6 +110,13 @@ enum
NAUTILUS_CLICK_POLICY_DOUBLE
};
+enum
+{
+ NAUTILUS_EXECUTABLE_TEXT_LAUNCH,
+ NAUTILUS_EXECUTABLE_TEXT_DISPLAY,
+ NAUTILUS_EXECUTABLE_TEXT_ASK
+};
+
typedef enum
{
NAUTILUS_SPEED_TRADEOFF_ALWAYS,
@@ -158,4 +168,4 @@ extern GSettings *gnome_lockdown_preferences;
extern GSettings *gnome_background_preferences;
extern GSettings *gnome_interface_preferences;
-G_END_DECLS
+G_END_DECLS \ No newline at end of file