From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
The gnome-cd-properties ("CD and DVD Preferences" UI) has an inconsistency in
how it handles the "Mount CD when inserted" preference.
When this preference is deselected, the following 2 preferences
("Start auto-run program on newly mounted cd" and
"Open file maneger window for newly mounted CD")
That is all well and good. however, the act of desensitizing a preference is
equivalent to saying that the option is inactive. In this panel, this is not the
Irregardless as to whether or not the 2 options ("Start autorun..." and "Open
file manager ...") are desensitized, the actual action of Starting
autorun, and/or Opening the file manager dependent _SOLELY_ as to whether or not
the 2nd/3rd options are respectively ticked.
In otherwords, if "Open File Manager" is ticked, yet desensitized, then when a
cdrom is mounted, the file manager will pop up.
This is undesireable, and inconsistent with good UI interface. A desensitized
option/preference should be ignored.
There are 2 ways to correct this inconsistency. The first, and easiest way to
correct this UI is to NOT desensitize these 2 options when the automount
preference ("Mount CD when inserted") is unticked. The 2nd alternative, is to
fix both magicdev deamon, and Nautilus, to not autorun, if the automount
preference is deselected.
From a consistency, as well as ease of implementation point of view, the first
alternative is much easier to implement, and much cleaner (from a user point of
view). (it's literally the deletion of 2 lines of code, patch is attached). The
2nd alternative requires minor modifications to both magicdev deamon, as well as
Nautilus, and would be more of a maintaince problem, so I am not submitting that
patch (even though it is about the same numbewr of lines of code to be changed).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run gnome-cd-properties
2. The auto run of file manager is ticked by default. leave it ticked (and tick
it if it is not ticked).
3. untick "Mount CD when inserted"
4. Notice that the 2nd and 3rd preferences are desensitized.
5. close the panel
6. mount a cd (or an iso image onto /mnt/cdrom)
7. notice Nautilus popping up.
Actual Results: Nautilus pops up
Expected Results: Nautilus should not pop up if the option is desensitized.
The attached patch removes the tying of desensitization of the 2nd/3rd
preference to the aotomount preference.
Created attachment 90785 [details]
patch to fix the bug
The "Open new window" option has been removed, and the "autorun" has
been fixed upstream.
2003-12-15 Bastien Nocera <email@example.com>
* daemon.c: (load_config): only have autorun if we have automount