add amissing else
This commit is contained in:
parent
d0c81a9b8f
commit
2cb711b720
|
@ -221,6 +221,7 @@ def launch_file_manager(path_to_open):
|
|||
os.startfile(path_to_open) # if pywin32 is installed we open
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
if gajim.config.get('openwith') == 'gnome-open':
|
||||
command = 'gnome-open'
|
||||
elif gajim.config.get('openwith') == 'kfmclient exec':
|
||||
|
@ -230,7 +231,7 @@ def launch_file_manager(path_to_open):
|
|||
if command == '': # if no app is configured
|
||||
return
|
||||
# we add the path in "" so we have good parsing from shell
|
||||
command = command + ' "' + uri + '" &'
|
||||
command = command + ' "' + path_to_open + '" &'
|
||||
try: #FIXME: when we require python2.4+ use subprocess module
|
||||
os.system(command)
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue