~guadalinex-members/mount-systray/trunk

« back to all changes in this revision

Viewing changes to src/MSDeviceManager.py

  • Committer: Roberto C. Morano
  • Date: 2009-12-15 17:27:22 UTC
  • Revision ID: rcmorano@emergya.es-20091215172722-pq333tq1jywu5gje
updated to use gvfs-mount. it works in jaunty and will be the only way to mount/umount recommended in karmic+

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
            if volume["uid"] == uid:
206
206
                if (os.path.exists ("/usr/bin/gnome-mount") == True):
207
207
                    cmdline = "gnome-mount --hal-udi " + uid + " --unmount"
208
 
                elif (os.path.exists ("/usr/bin/pumount") == True):
209
 
                    cmdline = "pumount " + volume["mount_point"]
 
208
                elif (os.path.exists ("/usr/bin/gvfs-mount") == True):
 
209
                    cmdline = "/usr/bin/gvfs-mount " + volume["mount_point"]
210
210
                os.system (cmdline)
211
211
                if volume["type"] == "cdrom":
212
212
                    cmdline = "eject " + volume["mount_point"]