Comment 5 for bug 525306

Revision history for this message
Chris S. (cszikszoy) wrote : Re: [Bug 525306] Re: Music CD has 2 Icons in Mounter applet

 I'll apply this patch and see how it works out. I believe I tried to do
something similar in the past, but the reason why it didn't work is because
sometimes Mount.Root is null. I think the true solution is to couple GIO
with udev, I just haven't worked out how exactly that would work.

On Wed, Jun 16, 2010 at 6:56 AM, Alex Murray <email address hidden> wrote:

> Attached is a patch which should fix this - basically we first check to
> see if a MountItem has already been created before adding a new one, and
> we test for equivalence using the root path of the mount point. Works
> for me and my iPhone which was previously producing duplicate entries
> without this patch.
>
> ** Patch added: "Patch to fix duplicate items appearing in mounter docklet"
>
> http://launchpadlibrarian.net/50434037/docky-fix-duplicate-mount-items.patch
>
> --
> Music CD has 2 Icons in Mounter applet
> https://bugs.launchpad.net/bugs/525306
> You received this bug notification because you are a bug assignee.
>
> Status in Docky: Confirmed
>
> Bug description:
> When I insert a Music CD, Mounter displays two Icons instead of one. No
> problems with DVD's or CD-R.
>
> $docky -d
> <code>
>
> [Info 15:08:31.522] Docky version: bzr docky r1159 ppa
> [Info 15:08:31.530] Kernel version: 2.6.31.19
> [Info 15:08:31.531] CLR version: 2.0.50727.1433
> [Warn 15:08:31.672] [GLib] g_set_prgname() called multiple times
> /usr/share/themes/Shiki-Brave/gtk-2.0/gtkrc:126: Murrine configuration
> option "gradients" is no longer supported and will be ignored.
> [Debug 15:08:31.745] [SystemService] Using org.freedesktop.DeviceKit.Power
> for battery information
> [Info 15:08:31.837] [DockServices] Dock services initialized.
> [Info 15:08:31.930] [DockController] Setting theme: Classic
> [Info 15:08:32.216] [PluginManager] Loaded "Docky.Widgets,1.0".
> [Info 15:08:32.216] [PluginManager] Loaded "Docky.Widgets,1.0".
> [Info 15:08:32.217] [PluginManager] Loaded "Weather".
> [Info 15:08:32.230] [PluginManager] Loaded "Trash".
> [Info 15:08:32.244] [PluginManager] Loaded "Battery Monitor".
> [Debug 15:08:32.249] [BatteryMonitorProcItem] Hiding battery item
> (capacity=0) (max_capacity=-1) (OnBattery=False)
> [Info 15:08:32.250] [PluginManager] Loaded "Mounter".
> [Debug 15:08:32.270] [MountProvider] Adding Disco de sonido.
> [Debug 15:08:32.459] Key MountItem_139720197160800 does not exist,
> creating.
> [Info 15:08:32.553] [AbstractWeatherSource] Weather Underground: Reloading
> weather data
> [Debug 15:08:32.561] [AbstractWeatherSource] Weather Underground: Fetching
> XML file '
> http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=Madrid%2c+Spain
> '
> [Info 15:08:32.662] [MountProvider] Disco de sonido mounted.
> [Debug 15:08:32.677] Key MountItem_139720199286320 does not exist,
> creating.
> [Info 15:08:33.789] [Helper] Starting pidgin_control.py
> [Info 15:08:33.803] [Helper] Starting rhythmbox_control.py
> [Info 15:08:33.824] [DrawingService] Could not find 'gajim', using
> fallback of 'extension'.
> </code>
>
> Ubuntu 9.10 64 bits
> mono-runtime 2.4.2.3
> xorg 1:7.4+3ubuntu10
> Nvidia GTS250
> Gnome 2.28.4
>
> Thanks
>
>
>