Re: Automounting GVFS systems when devices are added?



On Sun, 2008-10-12 at 17:02 -0700, Patrick Walton wrote:
> Hi,
> 
> I've been working on a GVFS backend for devices that use Apple File 
> Control (iPhone, iPod Touch, etc.). These devices use a proprietary SSL 
> connection, including certificate exchange, over a custom TCP-like 
> protocol over USB, meaning that a userspace daemon is the only feasible 
> way to communicate with them. I chose GVFS over the existing FUSE 
> implementation because FUSE is not very well integrated with the desktop 
> and is Linux-specific. (The code is at 
> http://github.com/pcwalton/gvfs-nw/tree/iphone for the curious.)
> 
> It is essentially working, but I'm not sure what to do about 
> automounting. When the user plugs in a supported device, I want to 
> automatically gvfs-mount afc://com.apple.afc/. Given that as I 
> understand it policy is not supposed to be implemented in HAL (which is 
> possibly being deprecated in favor of DeviceKit in the future anyway?) 
> what is the recommended way to do this?

If you make the hal volume monitor show the plugged in iPhone as a
(mountable) GVolume then the nautilus code should automount this for you
as needed (i think). 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]