make launch_file_manager work in windows

This commit is contained in:
Nikos Kouremenos 2005-08-11 11:44:14 +00:00
parent e1cb38d8e3
commit d0c81a9b8f
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,11 @@ def launch_browser_mailer(kind, uri):
pass
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':
command = 'gnome-open'
elif gajim.config.get('openwith') == 'kfmclient exec':