unity scope: use directly nautilus instead of xdg-open for "show in directory"
This commit is contained in:
parent
c63e1c9167
commit
31cdde1b3c
@ -256,9 +256,7 @@ class RecollScope(Unity.AbstractScope):
|
|||||||
print("RecollScope: do_activate. id [%s] uri [%s]" % (id, result.uri),
|
print("RecollScope: do_activate. id [%s] uri [%s]" % (id, result.uri),
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
if id == 'show':
|
if id == 'show':
|
||||||
filename = result.uri
|
os.system("nautilus '%s'" % str(result.uri))
|
||||||
dirname = os.path.dirname(filename)
|
|
||||||
os.system("xdg-open '%s'" % str(dirname))
|
|
||||||
return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH,
|
return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH,
|
||||||
goto_uri=None)
|
goto_uri=None)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user