Bug 87590 - desensitized gnome-cd-properties preferences are still active
Summary: desensitized gnome-cd-properties preferences are still active
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: magicdev
Version: 9
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: John (J5) Palmieri
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-03-29 14:40 UTC by greg hosler
Modified: 2013-03-13 04:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-08-25 17:44:23 UTC

Attachments (Terms of Use)
patch to fix the bug (138.79 KB, patch)
2003-03-29 14:44 UTC, greg hosler
no flags Details | Diff

Description greg hosler 2003-03-29 14:40:51 UTC
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")
are desensitized.

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):

How reproducible:

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.

Additional info:

The attached patch removes the tying of desensitization of the 2nd/3rd
preference to the aotomount preference.

Comment 1 greg hosler 2003-03-29 14:44:37 UTC
Created attachment 90785 [details]
patch to fix the bug

Comment 2 Bastien Nocera 2003-12-15 00:20:44 UTC
The "Open new window" option has been removed, and the "autorun" has
been fixed upstream.

2003-12-15  Bastien Nocera  <hadess@hadess.net>
        * daemon.c: (load_config): only have autorun if we have automount
        as well

Comment 3 John (J5) Palmieri 2004-08-25 17:44:23 UTC

Note You need to log in before you can comment on or make changes to this bug.