Re: Gnome-VFS, computer: and mounting



On Mon, 2006-07-03 at 01:01 +0200, nf2 wrote:

> On Gnome-VFS i can walk through the desktop-entries listed by 
> computer://, (there is an option in my xdg_vfs_gnome backend to 
> automatically dive into desktop entries). It already works for mounted 
> drives, but for drives which are not mounted, the URL points to "(null)":

That will only happen for drives where the target mountpoint is not yet
known. (This happens with hal, although we should probably fix the
desktop file in this case...)

> xdg_vfs_gnome get computer:///CD-RW%252FDVD%25C2%25B1R%2520Drive.drive
> [Desktop Entry]
> Encoding=UTF-8
> Name=CD-RW/DVD±R Drive
> Type=FSDevice
> Icon=gnome-dev-removable
> URL=(null)
> 
> I guess there is a way to look up the appropriate drive and call 
> gnome_vfs_drive_mount (), but i don't know how... Will the name returned 
> by gnome_vfs_drive_get_display_name () exactly match the "Name" 
> attribute of the desktop entry?

There should be a X-Gnome-Drive line that you could look at. However,
using computer:/// (which is just a UI thing) instead of the proper
volume manager API sounds like a horrible hack prone to breaking in
various ways.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a Nobel prize-winning skateboarding gangster with a secret. She's an 
enchanted psychic Valkyrie from a secret island of warrior women. They fight 
crime! 




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