make launch_file_manager work in windows
This commit is contained in:
parent
e1cb38d8e3
commit
d0c81a9b8f
|
@ -216,6 +216,11 @@ def launch_browser_mailer(kind, uri):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def launch_file_manager(path_to_open):
|
def launch_file_manager(path_to_open):
|
||||||
|
if os.name == 'nt':
|
||||||
|
try:
|
||||||
|
os.startfile(path_to_open) # if pywin32 is installed we open
|
||||||
|
except:
|
||||||
|
pass
|
||||||
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':
|
||||||
|
|
Loading…
Reference in New Issue