From 31cdde1b3c9a232e80a1c430045b20ec850e46c8 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 2 Apr 2014 09:36:11 +0200 Subject: [PATCH] unity scope: use directly nautilus instead of xdg-open for "show in directory" --- src/desktop/unity-scope-recoll/unity_recoll_daemon.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/desktop/unity-scope-recoll/unity_recoll_daemon.py b/src/desktop/unity-scope-recoll/unity_recoll_daemon.py index 80a419d6..b3f1465a 100755 --- a/src/desktop/unity-scope-recoll/unity_recoll_daemon.py +++ b/src/desktop/unity-scope-recoll/unity_recoll_daemon.py @@ -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: