Direct UDisks support for libfm and pcmanfm is finished!

I just finished direct udisks support for libfm and pcmanfm. After days of testing, it works well. So it’s now merged back t master branch and will be available in next release of libfm.  Please help test it.
Nothing in pcmanfm need to be changed. You only need to update libfm and it works. Adventurous users are encouraged to try out the latest libfm in git repository.

In addition, I add a config value in libfm.conf.
Adding show_internal_volumes=1 to [config] section of
~/.config/libfm/libfm.conf can let you show system internal volumes in
side panes even when udisks asks us to hide them.
This option is available in config file, but this might not be provided in UI later since it’s a geek’s option.

Now, gvfs is not needed for volume management. Only dbus and udisks are needed and it’s quite lightweight.
However, due to known limitations of glib/gio/gvfs, the gvfs module doing volume management still gets loaded and there is no clean way to stop it being loaded. However, if later we finished our own gvfs implementation, you won’t need gnome gvfs and this will be solved.

P.S.: If you get the error message “GLib-GIO-WARNING **: Extension point gio-native-volume-monitor registered multiple times”, that means you’re using a glib with too old version. Earlier versions of glib causes this bug. It’s fixed in newer glib versions.

Cheers!

Comments 20

  1. Arman Poghosyan wrote:

    I can see the light at the end of the tunnel(independent LXDE).

    Posted 04 Jul 2010 at 11:41 am
  2. Jaroslav Šmíd wrote:

    Tried git version, but it doesn’t seem to work. No device is shown, nothing happens when I instert flash drive, nothing happens when I insert optical disk…
    dbus is running, udisks –monitor works, so no problem with udisks.

    Posted 04 Jul 2010 at 12:52 pm
  3. PCMan wrote:

    You need to install git version of libfm, not pcmanfm.

    Posted 04 Jul 2010 at 1:55 pm
  4. Jaroslav Šmíd wrote:

    I installed both from git. Doesn’t work for me, wonder why.

    Posted 04 Jul 2010 at 3:58 pm
  5. Jaroslav Šmíd wrote:

    Anyway, I’ll look at it later on today, i will add some printf stuff to source code and try to find where the problem is.

    Posted 04 Jul 2010 at 4:00 pm
  6. amigib wrote:

    hmm, i get only

    (pcmanfm:18873): GLib-GIO-WARNING **: Extension point gio-native-volume-monitor registered multiple times

    and crash, i can’t get it working

    after downgrading to libfm 0.1.12 all works fine again

    Posted 06 Jul 2010 at 10:03 pm
  7. Lukas wrote:

    When the final version PCMANFM?

    Posted 07 Jul 2010 at 7:34 am
  8. Jaroslav Šmíd wrote:

    >Anyway, I’ll look at it later on today, i will add some printf stuff to source code and try to find where the problem is.

    Sorry, I didn’t have much time these days. I will do it on Saturday or Sunday.

    Posted 07 Jul 2010 at 10:13 am
  9. Pode wrote:

    I get the same GLib-GIO-WARNING when i configure with –enable-udisks option, but if I run only
    ./configure
    then the pcmanfm works but without udisks.

    Posted 07 Jul 2010 at 3:20 pm
  10. PCMan wrote:

    The error message “GLib-GIO-WARNING **: Extension point gio-native-volume-monitor registered multiple times” is caused by a limitation in old glib. That means you’re using a glib with too old version. Earlier versions of glib causes this bug. It’s fixed in newer glib versions. Upgrading glib should fix this.

    Posted 07 Jul 2010 at 4:03 pm
  11. amigib wrote:

    Yep, upgrading to 2.24.1 fixes problem, still not complete but it’s working, good job

    Posted 07 Jul 2010 at 8:40 pm
  12. Pode wrote:

    Thanks PCMan
    I upgraded too glib and it is working with udisks.
    But what is with Trash, need I gvfs for it to work or there is some other way?

    Posted 07 Jul 2010 at 10:09 pm
  13. Richard Jackson wrote:

    WOW!!
    Thanks for all of your work on this. This is going to be awesome, no more Gnome horay.

    Posted 08 Jul 2010 at 6:24 am
  14. bonico wrote:

    congrats!!

    Posted 08 Jul 2010 at 8:45 am
  15. Jaroslav Šmíd wrote:

    Hmm, strange. I’ve recompiled it and it somehow works. udisks debug stuff is being printed to console, but … nothing is shown in the sidebar panel. When I mount manually NTFS partition from console, it shows up in the sidebar and I can access it from there. When I unmount it from console, it remains in sidebar. When I click it I get “Not authorized”. When I try to unmount mounted partition I get “Not authorized”. When I insert DVD, my drive is shown in sidebar. But – I can’t mount it (“Not authorized”).

    When using nautilus + gvfs and mounting my NTFS partition – nautilus asks for password using policykit and mounts the partition. Then I can unmount it (I don’t have to enter password again for some time). When mounting DVD I don’t have to enter anything.

    Sometimes, my NTFS partition is shown several times in the panel, I don’t know why. Everything is OK in nautilus+gvfs.

    As documentation for udisks says, you need authorization from policykit for some actions performed by udisks. Maybe you need to ask policykit befor doing mount/unmount.

    Posted 09 Jul 2010 at 9:18 pm
  16. Jaroslav Šmíd wrote:

    BTW what about that Trash?

    Posted 09 Jul 2010 at 9:20 pm
  17. Yorik wrote:

    Sorry about being a bit off-topic, but this post lead me to another one you wrote a couple of months ago about external thumbnailers, and how to use them without relying on gconf. The comments are closed so I’ll post here. Thunar uses external thumbnailers without gconf too. They are simple .desktop files placed in /usr/share/thumbnailers, that point to the program used to generate the thumbnail. Pretty easy to use and add custom thumbnailers.
    PcmanFM without gnome dependency and with thumbnailer support would be a dream coming true, congrats for the beautiful work!

    Posted 13 Jul 2010 at 11:22 pm
  18. cookie wrote:

    I just updated libfm-git and mounting works perfectly. However after enabling to show internal volumes, it shows /var and root partitions as well. I just wanted to see my OSX partition :P . is there an option to allow specified volumes to show and hide the rest ?

    Posted 14 Jul 2010 at 2:17 pm
  19. thana wrote:

    Work well on debian sid (and without disk-manager, problems on comment #15).
    Sometimes, my intenal partition icon change from hard drive icon to folder icon.
    Is there a “unmount safely option” planned ? My sd card pop out and up when i unmont it, so i don’t know if i can unplug it.

    Posted 16 Jul 2010 at 9:24 am
  20. mihaim wrote:

    Nice job, PCMan, I knew it! A dream comes true, IMO.
    And you’re welcome (your previous blog entry), I’m so glad that I could help and motivate, it’s an honour for me, and I hope more people will support this project.

    Posted 20 Jul 2010 at 9:30 pm