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
|
os.startfile(path_to_open) # if pywin32 is installed we open
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
if gajim.config.get('openwith') == 'gnome-open':
|
if gajim.config.get('openwith') == 'gnome-open':
|
||||||
command = 'gnome-open'
|
command = 'gnome-open'
|
||||||
elif gajim.config.get('openwith') == 'kfmclient exec':
|
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
|
if command == '': # if no app is configured
|
||||||
return
|
return
|
||||||
# we add the path in "" so we have good parsing from shell
|
# 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
|
try: #FIXME: when we require python2.4+ use subprocess module
|
||||||
os.system(command)
|
os.system(command)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue