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 cffb9cf702 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
This commit is contained in:
mads@kiilerich.com 2011-09-07 16:07:57 -04:00 committed by Cosimo Cecchi
parent 8978c6375b
commit ad5b834df3
2 changed files with 1 additions and 9 deletions

View file

@ -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

View file

@ -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) {