Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#646 Direct udisk support doesn\'t work with last git

1.2
closed-fixed
libfm (250)
5
2013-08-31
2012-10-31
Jonas
No

Hello,

I installed the last git version but I can\'t make direct udisks support work although it work fine
with pcmanfm 0.9.10 (debian package). I read the building instructions and I didn\'t forget to
compile libfm with --enable-udisks (compile results are in attachement).
I also looked at the running processes and the only thing I found was that
/usr/lib/udisks/udisks-daemon was not launched with the latest pcmanfm. Launching it
afterwards didn\'t fix the problem.

Jonas

Discussion

  • Jonas
    Jonas
    2012-10-31

     
    Attachments
  • Jonas
    Jonas
    2012-10-31

     
    Attachments
  • Jonas
    Jonas
    2012-10-31

    • milestone: --> 3172103
     
  • The udisks API was changed drastically lately therefore udisks support is known to be broken in many cases unfortunately.
    Does it work with pcmanfm 0.9.10 on the same system where you've tried to run pcmanfm 1.x or on another one?
    Thank you.

     
    • milestone: 3172103 --> 1.2
     
  • Jonas
    Jonas
    2012-11-02

    Yes both versions are in the same system.
    pcmanfm 1.x is linked against libfm 1.x (both are installed in /usr/local).
    pcmanfm 0.9.10-3 and libfm 0.1.7-2 are installed from the debian testing packages.
    I forgot to say that with udisks support I can see my windows partition and when pcmanfm is launched as root only (ntfs-3g limitation), I can mount it, but I can't see any external disks or USB keys that I plug.
    With gvfs support compiled, I don't have this problem,

     
  • Jonas
    Jonas
    2012-11-02

    And I am using udisks 1.0.4-7 (debian package)

     
  • Unfortunately I don't know how it can work with old library but cannot with new. No changes in udisks support has been made since version 0.1.15 and you have 0.1.17 working. Only idea is you have two different versions of glib/udisks/gvfs installed and old libfm is compiled against one version but new libfm is compiled against other. I have no other ideas.
    In any case the best way to get what you need is to reproduce it and get it fixed. To find what I can do with it I need your help. The very least I need to know is how to reproduce the problem (step by step) and which behavior is missed then. I have udisks installed here already and libfm is compiled with udisks support but it still uses gvfs as I have both gvfs-backends and gvfs-fuse installed.
    Thank you in advance.

     
  • Jonas
    Jonas
    2012-11-06

    Actually at that time I didn't have gvfs installed, but now I installed it.

    Anyway, here is what I did step by step for both pcmanfm 0.9.10 and the last git while gvfs is installed
    (gvfs gvfs-backends gvfs-common gvfs-daemons gvfs-fuse gvfs-libs) :

    libfm :
    ./configure --prefix=/usr/local --sysconfdir=/etc --enable-udisks
    make
    sudo make install-strip

    pcmanfm :
    export LD_RUN_PATH=/usr/local/lib
    ./configure --prefix=/usr/local --sysconfdir=/etc
    make
    sudo make install-strip

    Then for both pcmanfm 0.9.10 and the last git, I can plug an USB stick or HD and see it on the left panel then mount it.

    If now I deinstall all the gvfs packages, then it still work with USB sticks or HDs with pcmanfm 0.9.10 but with the last git, they don't appear in the left panel, nor the popup window asking what to do with them. Strangely with the last git, for not root users the Windows partition appears now in the left panel (although beeing invisible when gvfs was installed) but it is unmountable due to a ntfs-3g limitation.

    So if you simply deinstall gvfs, I think this problem should appear for you.

     
    • assigned_to: nobody --> lstranger
    • status: open --> open-fixed
     
  • I hope the latest commit into GIT fixes the issue. iLet me know if it works for you now, please. Thank you very much.

     
    • status: open-fixed --> closed-fixed
     
  • This issue should be handled in 1.2.0-beta0 version of libfm. Test it, please, when it's possible for you. Note that you should recompile pcmanfm to use new version of libfm.
    Thank uou very much.