Browse Source

New "-w" option to luminotes.py that prevents web browser from opening when Luminotes Desktop is started. Patch from Pete Burgers.

Dan Helfman 8 years ago
parent
commit
a87a7dcff5
2 changed files with 7 additions and 1 deletions
  1. 2
    0
      NEWS
  2. 5
    1
      luminotes.py

+ 2
- 0
NEWS View File

@@ -8,6 +8,8 @@
8 8
  * Now stripping certain invisible placeholder characters from print version
9 9
    of Luminotes notebooks. These characters could show up when copy and pasted
10 10
    into another application.
11
+ * New "-w" option to luminotes.py that prevents web browser from opening when
12
+   Luminotes Desktop is started. Patch from Pete Burgers.
11 13
 
12 14
 1.6.17: July 26, 2009
13 15
  * Fixed a bug that caused ever-growing notes in Internet Explorer 8.

+ 5
- 1
luminotes.py View File

@@ -50,7 +50,11 @@ def main( args ):
50 50
 
51 51
   cherrypy.config.update( settings )
52 52
 
53
-  launch_browser = cherrypy.config.configMap[ u"global" ].get( u"luminotes.launch_browser" )
53
+  # Don't launch web browser if -w flag is set
54
+  if args and "-w" in args:
55
+    launch_browser = False
56
+  else:
57
+    launch_browser = cherrypy.config.configMap[ u"global" ].get( u"luminotes.launch_browser" )
54 58
 
55 59
   socket.setdefaulttimeout( INITIAL_SOCKET_TIMEOUT_SECONDS )
56 60
   port_filename = cherrypy.config.configMap[ u"global" ].get( u"luminotes.port_file" )