-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dr. Michael J. Chudobiak wrote: > Is it normally safe to assume (and choke on a g_assert) that "~/.gvfs" > mounts are available for non-local-path files (like sftp://whatever...)? > Or is that bad behaviour? > > Is there an elegant way for an app to demand that .gvfs mount points be > made available? What's best practice here? > > - Mike
Mike, Those are only available if gvfs-fuse is installed... Also there is an api call that gives you the local path to a uri object if gvfs-fuse is installed.. g_file_get_path(); If gvfs-fuse is not installed this will give you a NULL pointer and then you have to resort to a g_file_copy_async or g_file_copy_sync. I found this and used this is gnome-mplayer. You can see how I used it here http://code.google.com/p/gnome-mplayer/source/browse/trunk/src/support.c Look for the function get_localfile_from_uri Hope that helps, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAklOTjQACgkQ6w2kMH0L1dHrqwCfczjDBYaHa0meVlUj1KiaoA7m mDEAoJVyR8do65l43aM+3Q0DiuWRSEp3 =GC7y -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list