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.
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.