vfs.File.launch() doesn't try to mount a remote location
Bug #625377 reported by
onox
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Desktop Agnostic Library for GLib-based Projects |
New
|
Undecided
|
Unassigned |
Bug Description
vfs.File.launch() doesn't try to mount a remote location. It just fails with a GError saying: The specified location is not mounted.
xdg (python-xdg) seems to mount it before launching the location.
Bzr revision 409 of mhr3's lda-various-fixes branch.
description: | updated |
tags: | added: feature-request |
To post a comment you must log in.
Mounting could be something like this:
def mount_result( volume2, result): mount_finish( result) : get_mount( ).get_root( ).get_uri( )
self. open_uri( uri)
error_ dialog = self.UnableToMo untErrorDialog( self.applet, volume2.get_name(), e)
error_ dialog. show_all( ) mount(gio. MountOperation( ), mount_result)
try:
if volume2.
uri = volume2.
except glib.GError, e:
volume.
This mounts a volume. For uris, not sure what should be used, perhaps gio.File. mount_enclosing _volume.
One could decide to remove the try-except block and just let the glib.GError propagate to higher levels. If lda shows an error dialog, it would be nice if it looks like the one from nautilus or yama.