Package: gnome-volume-manager
Version: 2.22.1-1
Severity: normal

Hi, today I had buyed a 8GB usbkey (Sandisk) that shows two devices:
  1 normal storage (and I want to see it on my desktop)
  1 MSDOS image with windows utilities (and I DON'T WANT TO SEE IT ON MY 
                                        DESKTOP)

I remembered that working on hal configuration I will be allowed to 
hide this unusefull partition/device or what is.

I try and try but normal /etc/hal/fdi/policy/preferences.fdi configurations
not work correctly ("storage.automount_enabled_hint" and "volume.ignore")
so I put my hands in the code and I discovered that the pseudo-cdrom
not follows the normal storage flow but was intecepted by a gvm_media_changed.

To solve this problem I add a a check to verify if the volume is disable before
continue.

This is my patch to solve the problem:

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
diff -u -r gnome-volume-manager-2.22.1/src/manager.c 
gnome-volume-manager-2.22.1_mop/src/manager.c
--- gnome-volume-manager-2.22.1/src/manager.c   2008-01-18 17:30:22.000000000 
+0100
+++ gnome-volume-manager-2.22.1_mop/src/manager.c       2010-09-11 
16:29:25.000000000 +0200
@@ -2698,10 +2698,15 @@
         * check storage_device and not our own UDI
         */
        if (libhal_device_get_property_bool (hal_ctx, storage_device, 
"storage.removable", NULL)) {
-               /* we handle media change events separately */
-               dbg ("Changed: %s\n", device);
-               if (gvm_media_changed (udi, storage_device))
+               if (!libhal_device_get_property_bool (hal_ctx, udi, 
"volume.ignore", NULL)) {
+                       /* we handle media change events separately */
+                       dbg ("Changed: %s\n", device);
+                       if (gvm_media_changed (udi, storage_device))
+                               goto out;
+               }
+               else {
                        goto out;
+               }
        }
        
        if (config.automount_drives && (mountable || crypto)) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Best regards, Matteo Nastasi (mop).

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnome-volume-manager depends on:
ii  gconf2              2.22.0-1             GNOME configuration database syste
ii  gnome-mount         0.7-2                wrapper for (un)mounting and eject
ii  hal                 0.5.11-8             Hardware Abstraction Layer
ii  libart-2.0-2        2.3.20-2             Library of functions for 2D graphi
ii  libatk1.0-0         1.22.0-1             The ATK accessibility toolkit
ii  libbonobo2-0        2.22.0-1             Bonobo CORBA interfaces library
ii  libbonoboui2-0      2.22.0-1             The Bonobo UI library
ii  libc6               2.7-18lenny2         GNU C Library: Shared libraries
ii  libcairo2           1.6.4-7              The Cairo 2D vector graphics libra
ii  libdbus-1-3         1.2.1-5+lenny1       simple interprocess messaging syst
ii  libdbus-glib-1-2    0.76-1               simple interprocess messaging syst
ii  libgconf2-4         2.22.0-1             GNOME configuration database syste
ii  libglade2-0         1:2.6.2-1            library to load .glade files at ru
ii  libglib2.0-0        2.16.6-3             The GLib library of C routines
ii  libgnome2-0         2.20.1.1-1           The GNOME 2 library - runtime file
ii  libgnomecanvas2-0   2.20.1.1-1           A powerful object-oriented display
ii  libgnomeui-0        2.20.1.1-2           The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0      1:2.22.0-5           GNOME Virtual File System (runtime
ii  libgtk2.0-0         2.12.12-1~lenny2     The GTK+ graphical user interface 
ii  libhal1             0.5.11-8             Hardware Abstraction Layer - share
ii  libice6             2:1.0.4-1            X11 Inter-Client Exchange library
ii  libnotify1 [libnoti 0.4.4-3              sends desktop notifications to a n
ii  liborbit2           1:2.14.13-0.1        libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0       1.20.5-6             Layout and rendering of internatio
ii  libpopt0            1.14-4               lib for parsing cmdline parameters
ii  libsm6              2:1.0.3-2            X11 Session Management library
ii  libx11-6            2:1.1.5-2            X11 client-side library
ii  libxml2             2.6.32.dfsg-5+lenny1 GNOME XML library

Versions of packages gnome-volume-manager recommends:
ii  gthumb                 3:2.10.8-1+lenny2 an image viewer and browser
ii  nautilus-cd-burner     2.20.0-1          CD Burning front-end for Nautilus
ii  sound-juicer           2.22.0-3          GNOME 2 CD Ripper
pn  totem                  <none>            (no description available)

Versions of packages gnome-volume-manager suggests:
ii  rhythmbox                     0.11.6-1   music player and organizer for GNO
ii  serpentine                    0.9-6      An application for creating audio 
pn  wine                          <none>     (no description available)
ii  xsane                         0.996-1    featureful graphical frontend for 

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to