Skip to content

Commit

Permalink
Always use xdg-open because it's a standard in Linux DEs
Browse files Browse the repository at this point in the history
Signed-off-by: Defman21 <[email protected]>
  • Loading branch information
Defman21 committed Jun 17, 2017
1 parent 8a61a9b commit 4ed9a98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/koSysUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,8 @@ def ShowFileInFileManager(self, filename):
xdg_open = self.Which('xdg-open')
if xdg_open:
os.system('xdg-open "%s" &' % filename)
elif manager == "gnome":
os.system('nautilus "%s" &' % filename)
elif manager == "kde":
os.system('dolphin "%s" &' % filename)
else:
raise "File manager not found / xdg-open not installed"
raise "xdg-open is not installed (or it's not on your $PATH)"

def OpenFile(self, filename):
"""OpenFile
Expand Down

0 comments on commit 4ed9a98

Please sign in to comment.