After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 453266 - support for the windows autorun mecanism - patch included
support for the windows autorun mecanism - patch included
Status: RESOLVED FIXED
Product: gnome-volume-manager
Classification: Deprecated
Component: general
2.17.x
Other All
: Normal enhancement
: ---
Assigned To: Gnome volume manager maintainers
Gnome volume manager maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-03 00:23 UTC by Hanusz Leszek
Modified: 2007-09-12 00:53 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
gnome-volume-manager-autorun-inf-01.patch (31.85 KB, patch)
2007-07-03 00:24 UTC, Hanusz Leszek
none Details | Review
gnome-volume-manager-autorun-inf-02.patch (31.83 KB, patch)
2007-07-03 15:39 UTC, Hanusz Leszek
none Details | Review
autorun_check_if_dir.patch (494 bytes, patch)
2007-09-11 17:24 UTC, Hanusz Leszek
committed Details | Review

Description Hanusz Leszek 2007-07-03 00:23:44 UTC
Hello,

I have included a patch to implement this specification:
https://wiki.ubuntu.com/autorun

It would allow to autorun windows cd's by reading the autorun.inf file.

First reported on Ubuntu launchpad here: https://bugs.launchpad.net/ubuntu/+source/gnome-volume-manager/+bug/123313
Comment 1 Hanusz Leszek 2007-07-03 00:24:59 UTC
Created attachment 91068 [details] [review]
gnome-volume-manager-autorun-inf-01.patch
Comment 2 Hanusz Leszek 2007-07-03 15:39:54 UTC
Created attachment 91114 [details] [review]
gnome-volume-manager-autorun-inf-02.patch
Comment 3 Jeffrey Stedfast 2007-09-11 14:43:30 UTC
implemented this in svn in a much simpler way (e.g. we don't need a full-blown inf parser)
Comment 4 Hanusz Leszek 2007-09-11 17:23:48 UTC
There is a bug with your method when there is a Autorun directory (common with some windows cds)
With the old method you don't check if the file is a directory.
I will send a patch for the svn version here.
Comment 5 Hanusz Leszek 2007-09-11 17:24:49 UTC
Created attachment 95370 [details] [review]
autorun_check_if_dir.patch
Comment 6 Jeffrey Stedfast 2007-09-11 18:59:06 UTC
aha, thanks, just fixed this in svn
Comment 7 Hanusz Leszek 2007-09-11 19:31:07 UTC
I made some more tests with all my cds and noticed there is still 2 problems.

Problem 1:
It doesn't work if there are spaces and/or tabs in the open string.
Example:
OPEN = STARTUP.EXE

Problem 2:
It doesn't work if there are arguments in the open string.
Example:
open=start.exe /auto

It will fail with this error:
** (gnome-volume-manager:22275): WARNING **: manager.c/1280: failed to exec /media/cdrom0/start.exe /auto: Failed to execute child process "/media/cdrom0/start.exe /auto" (No such file or directory)

I can make a patch if you want
Comment 8 Jeffrey Stedfast 2007-09-12 00:53:59 UTC
ok, just fixed those 2 issues in svn

thanks for the testing, my test cases are limited :)