Help needed with GnomeVFS/GVFS

View: New views
2 Messages — Rating Filter:   Alert me  

Help needed with GnomeVFS/GVFS

by Andreas Heinlein-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I need to write a small app which will catch volume mounts and unmounts
as well as drive insertions/removal.

I have written a Perl daemon for that, which hooks to the signals
"drive-connected", "drive-disconnected", "volume-mounted" and
"volume-pre-unmount" of a Gnome2::VFS::VolumeMonitor object. Getting
"volume-mounted" or the disk signals works just fine, but I never get
"volume-pre-unmount".

I have no idea why, I already asked on the gtk2-perl mailing list but
got no answer. In addition, I noticed that I am not getting
"drive-connected" any more und Ubuntu Jaunty when the drive in question
contains no recognized file system. This is bad because one use for this
app is to auto-mount TrueCrypt encrypted volumes.

I suspect this has to do with deprecation of GnomeVFS, but Python and
Perl (the languages I know best) bindings for GVFS seem to not exist or
are badly documented.

Can anyone help me with this?

Thanks, Andreas
_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list

Parent Message unknown Re: Help needed with GnomeVFS/GVFS

by Andreas Heinlein-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Iain schrieb:

> On Thu, Apr 23, 2009 at 9:11 AM, Andreas Heinlein <aheinlein@...> wrote:
>
>  
>> I have written a Perl daemon for that, which hooks to the signals
>> "drive-connected", "drive-disconnected", "volume-mounted" and
>> "volume-pre-unmount" of a Gnome2::VFS::VolumeMonitor object. Getting
>> "volume-mounted" or the disk signals works just fine, but I never get
>> "volume-pre-unmount".
>>    
>
> I had to upgrade to gvfs 1.2.1 before I got pre-unmount emitted.
>
> iain
>  
I tried on Ubuntu Jaunty, which includes gvfs 1.2.2.

Andreas
_______________________________________________
gnome-vfs-list mailing list
gnome-vfs-list@...
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list