xfce4 desktop shows LVM disk as removable device

Bug #876823 reported by Hadmut Danisch
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Thunar File Manager
Won't Fix
Medium
thunar (Ubuntu)
Invalid
Low
Unassigned

Bug Description

Hi,

I just gave xfce4 under oneiric a try.

By default, under xfce4 the option is enabled to display removable devices as icons on the desktop. The desktop also displays a LVM partition on the harddisk erroneously as a removable Device.

Revision history for this message
In , Yves-Alexis Perez (corsac) wrote :

Hey,

starting Xfce 4.8, Thunar shows a whole lot of volumes (in thunar and in xfdesktop4).

There's a way to hide them using udev rules and UDISKS_PRESENTATION_HIDE but it'd be best if this could be handled in Thunar itself.

udisks --dump reports that for those system volumes I have the following properties which could help (not sure how they are available programmatically though):

  system internal: 1
  removable: 0

Revision history for this message
In , Jannis Pohlmann (jannis-xfce) wrote :

We could access UDISKS_PRESENTATION_HIDE but I'd rather rely on GIO to provide us with that information. IT doesn't seem like there is a GVolume property or function for this yet but proposing that would be the right thing to do.

On systems with udisks available we can probably add a workaround to check UDISKS_PRESENTATION_HIDE but it's just a hack.

Revision history for this message
Micah Gersten (micahg) wrote :

xfce4 is a meta package, thunar is a better suspect for this, reassigning

affects: xfce4 (Ubuntu) → thunar (Ubuntu)
Revision history for this message
Hadmut Danisch (hadmut) wrote :

BTW, on this computer the LVM was put inside an encrypted device. Maybe that's the reason why XFCE4 does not recognize it as in use. However. LVM devices should never be offered as a disk to be opened.

Changed in thunar (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
In , Lionel Le Folgoc (mrpouit) wrote :

There's a function called g_unix_mount_is_system_internal () in gio unix, so maybe Thunar doesn't use it (I can't check right now, sorry).

Revision history for this message
In , Lionel Le Folgoc (mrpouit) wrote :

Actually, there's even better: g_unix_mount_guess_should_display() -- guesses whether a Unix mount should be displayed in the UI -- could probably be used, as it calls g_unix_mount_is_system_internal(), among other checks.

Revision history for this message
In , dg1727 (dg1727) wrote :

Hi,

(I'm using XFCE 4.10 on Xubuntu 12.10)

There doesn't seem to be much description in this bug of which volumes are shown that shouldn't be. Are they the internal volumes?

For example, on a multi-boot Linux/Linux/Windows computer, the Windows partition, and Linux system partitions other than the current one, shouldn't be shown?

This may be what the submitter of bug 9213 meant by "When starting my system I would expect that ... the internal drives are not mounted."

Revision history for this message
In , dg1727 (dg1727) wrote :

My suggestion in comment 4 seems to conflict with bug 8292. Maybe someone can help clarify this.

Revision history for this message
In , Hjudt-l (hjudt-l) wrote :

Reopen if the issue still exists in up-to-date versions.

Changed in thunar:
importance: Unknown → Medium
status: Unknown → Won't Fix
Changed in thunar (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.