mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 02:36:07 +00:00
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:
parent
8978c6375b
commit
ad5b834df3
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue