parser.add_argument("-u","--url",action='store',dest="url",help="Force URL for the session. If there is already a running session we will connect to it. Otherwise we will start one there. Default is local host with random port. Example: osc.udp://myhost.localdomain:14294/")
parser.add_argument("--nsm-url",action='store',dest="url",help="Same as --url.")
parser.add_argument("-s","--session",action='store',dest="session",help="Session to open on startup.")
parser.add_argument("-s","--session",action='store',dest="session",help="Session to open on startup. Overrides --continue")
parser.add_argument("-c","--continue",action='store_true',dest="continueLastSession",help="Autostart last active session.")
parser.add_argument("-i","--hide",action='store_true',dest="starthidden",help="Start GUI hidden in tray, only if tray available on system.")
parser.add_argument("--session-root",action='store',dest="sessionRoot",help="Root directory of all sessions. Defaults to '$HOME/NSM Sessions'")
args=parser.parse_args()
@ -59,7 +61,7 @@ else:
logger=logging.getLogger(__name__)
logger.info("import")
"""set up python search path before the program starts and cbox gets imported.
"""set up python search path before the program starts
#self.systemTray.buildContextMenu() #Don't. This crashes Qt through some delayed execution of who knows what. Workaround: tray context menu now say "Show/Hide" and not only the actual state.
def_askBeforeQuit(self,nsmSessionName):
@ -333,7 +362,6 @@ class MainWindow(QtWidgets.QMainWindow):
ifwidget.success:
self.updateProgramDatabase()
defstoreWindowSettings(self):
"""Window state is not saved in the real save file. That would lead to portability problems