From f1d4b2ceb4788aefb80939c8b4ba02ca24db7b15 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 21 Mar 2006 14:47:11 +0000 Subject: [PATCH] (history manager) do some basic stuff for our windows users. add a fixme to test it works and test further for when I sit on Windows --- src/roster_window.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 1aa509566..90c968fc1 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -523,7 +523,13 @@ class RosterWindow: pass #FIXME: impement disco in users for 0.9 def on_history_manager_menuitem_activate(self, widget): - os.system('python history_manager.py &') + if os.name == 'nt': # FIXME: test it actually works.. + try: + os.startfile('history_manager.exe') # if pywin32 is installed we open + except: # FIXME: fallback (for windows svn users) to py + pass + else: + os.system('python history_manager.py &') def get_and_connect_advanced_menuitem_menu(self, account): xml = gtk.glade.XML(GTKGUI_GLADE, 'advanced_menuitem_menu', APP)