[nautilus] nautilus-autorun-software: handle mime type x-content/unix-software only
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-autorun-software: handle mime type x-content/unix-software only
- Date: Wed, 7 Sep 2011 20:08:47 +0000 (UTC)
commit ad5b834df34d6a8f3919909b63ce97cc2bda53d4
Author: mads kiilerich com <mads kiilerich com>
Date: Wed Sep 7 16:07:57 2011 -0400
nautilus-autorun-software: handle mime type x-content/unix-software only
This is a consequence of the fix for
https://bugs.freedesktop.org/show_bug.cgi?id=20562 .
This undoes the part of cffb9cf7025 that hardcodes that media with
x-content/win32-software are silently ignored, and thus improves on the
fix for #524270.
Wine or something could now provide a handler for win32-software.
https://bugzilla.gnome.org/show_bug.cgi?id=632510
data/nautilus-autorun-software.desktop.in.in | 2 +-
src/nautilus-autorun-software.c | 8 --------
2 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/data/nautilus-autorun-software.desktop.in.in b/data/nautilus-autorun-software.desktop.in.in
index 7178261..5d1c11b 100644
--- a/data/nautilus-autorun-software.desktop.in.in
+++ b/data/nautilus-autorun-software.desktop.in.in
@@ -7,7 +7,7 @@ NoDisplay=true
Terminal=false
StartupNotify=true
Type=Application
-MimeType=x-content/software;
+MimeType=x-content/unix-software;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
diff --git a/src/nautilus-autorun-software.c b/src/nautilus-autorun-software.c
index 50e5356..2909457 100644
--- a/src/nautilus-autorun-software.c
+++ b/src/nautilus-autorun-software.c
@@ -125,14 +125,6 @@ autorun (GMount *mount)
} else if (_check_file (root, "autorun.sh", TRUE)) {
program_to_spawn = g_file_new_for_path ("/bin/sh");
program_parameter_file = g_file_get_child (root, "autorun.sh");
- } else if (_check_file (root, "autorun.exe", TRUE)) {
- /* TODO */
- } else if (_check_file (root, "AUTORUN.EXE", TRUE)) {
- /* TODO */
- } else if (_check_file (root, "autorun.inf", FALSE)) {
- /* TODO */
- } else if (_check_file (root, "AUTORUN.INF", FALSE)) {
- /* TODO */
}
if (program_to_spawn != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]