[X2Go-Commits] [pyhoca-gui] 07/71: CVix: customize default cmdline parameters for CVix

git-admin at x2go.org git-admin at x2go.org
Thu Mar 20 00:32:41 CET 2014


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

x2go pushed a commit to branch cvix/2.x
in repository pyhoca-gui.

commit 6c36a86c193e703c93d44193e92cdfe3ef313863
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Feb 5 12:41:38 2014 +0100

    CVix: customize default cmdline parameters for CVix
---
 CVix.py |   34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)

diff --git a/CVix.py b/CVix.py
index 337f7b6..25a76dd 100755
--- a/CVix.py
+++ b/CVix.py
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-# Copyright (C) 2010-2013 by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
-# Copyright (C) 2010-2013 by Dick Kniep <dick.kniep at lindix.nl>
+# Copyright (C) 2010-2014 by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+# Copyright (C) 2010-2014 by Dick Kniep <dick.kniep at lindix.nl>
 #
 # PyHoca GUI is free software; you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -29,10 +29,26 @@ __author__ = "Mike Gabriel, Dick Kniep"
 __version__ = 2.0
 
 if __name__ == '__main__':
-    app = PyHocaGUI_Launcher()
-    app.setup_progname('CVix')
-    app.setup_version(__version__)
-    app.setup_consolelog()
-    app.setup_process()
-    app.setup_devmode()
-    app.main()
+    launcher = PyHocaGUI_Launcher()
+
+    launcher.setup_progname('CVix')
+    launcher.setup_version(__version__)
+    launcher.setup_consolelog()
+    launcher.setup_process()
+    launcher.setup_devmode()
+
+    launcher.modify_default_option('session_profile', 'CVix')
+    launcher.modify_default_option('debug', True)
+    launcher.modify_default_option('libdebug', True)
+    launcher.modify_default_option('remember_username', True)
+    launcher.modify_default_option('non_interactive', True)
+    launcher.modify_default_option('restricted_trayicon', True)
+    launcher.modify_default_option('add_to_known_hosts', True)
+    launcher.modify_default_option('resume_newest_on_connect', True)
+
+    # only has effect on MS Windows systems
+    launcher.modify_default_option('lang', 'nl')
+    launcher.modify_default_option('start_xserver', True)
+
+    args, logger, liblogger = launcher.parseargs()
+    launcher.main(args=args, logger=logger, liblogger=liblogger)

--
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