mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
36879e1bf3
commit
0fc9a42975
@ -5,7 +5,7 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
__copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import dbus
|
import os, dbus
|
||||||
|
|
||||||
def node_mountpoint(node):
|
def node_mountpoint(node):
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ class UDisks(object):
|
|||||||
try:
|
try:
|
||||||
return unicode(d.FilesystemMount('',
|
return unicode(d.FilesystemMount('',
|
||||||
['auth_no_user_interaction', 'rw', 'noexec', 'nosuid',
|
['auth_no_user_interaction', 'rw', 'noexec', 'nosuid',
|
||||||
'sync', 'nodev', 'uid=1000', 'gid=1000']))
|
'sync', 'nodev', 'uid=%d'%os.geteuid(), 'gid=%d'%os.getegid()]))
|
||||||
except:
|
except:
|
||||||
# May be already mounted, check
|
# May be already mounted, check
|
||||||
mp = node_mountpoint(str(device_node_path))
|
mp = node_mountpoint(str(device_node_path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user