unity scope: use directly nautilus instead of xdg-open for "show in directory"

This commit is contained in:
Jean-Francois Dockes 2014-04-02 09:36:11 +02:00
parent c63e1c9167
commit 31cdde1b3c

View File

@ -256,9 +256,7 @@ class RecollScope(Unity.AbstractScope):
print("RecollScope: do_activate. id [%s] uri [%s]" % (id, result.uri),
file=sys.stderr)
if id == 'show':
filename = result.uri
dirname = os.path.dirname(filename)
os.system("xdg-open '%s'" % str(dirname))
os.system("nautilus '%s'" % str(result.uri))
return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH,
goto_uri=None)
else: