[X2Go-Commits] [pyhoca-gui] 01/01: PyHocaGUI_Launcher: provide an appname for the dummy wx.App instance when notifying about already running application

git-admin at x2go.org git-admin at x2go.org
Wed Apr 16 16:44:20 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit 929fa67d5e499369d48f2e921cdfdddca8f0cdaa
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Apr 16 16:43:32 2014 +0200

    PyHocaGUI_Launcher: provide an appname for the dummy wx.App instance when notifying about already running application
---
 pyhoca/wxgui/launcher.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyhoca/wxgui/launcher.py b/pyhoca/wxgui/launcher.py
index 35e7adc..a9080db 100644
--- a/pyhoca/wxgui/launcher.py
+++ b/pyhoca/wxgui/launcher.py
@@ -398,7 +398,9 @@ VERSION: %s
 
         if self.check_running():
             sys.stderr.write("\n###############################\n### %s: already running for user %s\n###############################\n" % (self.PROG_NAME, CURRENT_LOCAL_USER))
-            m = PyHoca_MessageWindow_Ok(wx.App(), shortmsg='ALREADY_RUNNING', title=u'%s (%s)...' % (self.PROG_NAME, self.VERSION), icon='{progname}_trayicon'.format(progname=self.PROG_NAME))
+            _dummy_app = wx.App()
+            _dummy_app.appname = self.PROG_NAME
+            m = PyHoca_MessageWindow_Ok(_dummy_app, shortmsg='ALREADY_RUNNING', title=u'%s (%s)...' % (self.PROG_NAME, self.VERSION), icon='{progname}_trayicon'.format(progname=self.PROG_NAME))
             m.ShowModal()
             self.version()
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git



More information about the x2go-commits mailing list