File tree 1 file changed +6
-12
lines changed
1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -258,21 +258,15 @@ def ShowFileInFileManager(self, filename):
258
258
manager = self ._getManager ()
259
259
if os .path .isfile (filename ):
260
260
filename = os .path .dirname (filename )
261
- if manager == "gnome" :
261
+ xdg_open = self .Which ('xdg-open' )
262
+ if xdg_open :
263
+ os .system ('xdg-open "%s" &' % filename )
264
+ elif manager == "gnome" :
262
265
os .system ('nautilus "%s" &' % filename )
263
266
elif manager == "kde" :
264
- os .system ('konqueror --profile filemanagement "%s" &' % filename )
267
+ os .system ('dolphin "%s" &' % filename )
265
268
else :
266
- # see if nautilus or konqueror exists, and use them
267
- nautilus = self .Which ("nautilus" )
268
- if nautilus :
269
- os .system ('nautilus "%s" &' % filename )
270
- return
271
- konqueror = self .Which ("konqueror" )
272
- if konqueror :
273
- os .system ('konqueror --profile filemanagement "%s" &' % filename )
274
- return
275
- raise "NOT IMPLEMENTED"
269
+ raise "File manager not found / xdg-open not installed"
276
270
277
271
def OpenFile (self , filename ):
278
272
"""OpenFile
You can’t perform that action at this time.
0 commit comments