src/eric7/UI/UserInterface.py

branch
eric7
changeset 9377
b9c8dc3b7da1
parent 9308
110d32f96013
child 9413
80c06d472826
equal deleted inserted replaced
9376:e143a7e7254b 9377:b9c8dc3b7da1
5147 def __newWindow(self): 5147 def __newWindow(self):
5148 """ 5148 """
5149 Private slot to start a new instance of eric. 5149 Private slot to start a new instance of eric.
5150 """ 5150 """
5151 if not Preferences.getUI("SingleApplicationMode"): 5151 if not Preferences.getUI("SingleApplicationMode"):
5152 # start eric without any arguments 5152 # start eric without loading anything and without crash session
5153 program = Globals.getPythonExecutable() 5153 program = Globals.getPythonExecutable()
5154 eric7 = os.path.join(getConfig("ericDir"), "eric7.py") 5154 eric7 = os.path.join(os.path.dirname(__file__), "..", "eric7_ide.py")
5155 args = [eric7] 5155 args = [eric7, "--no-open", "--disable-crash"]
5156 QProcess.startDetached(program, args) 5156 QProcess.startDetached(program, args)
5157 5157
5158 def __initToolsMenus(self, menu): 5158 def __initToolsMenus(self, menu):
5159 """ 5159 """
5160 Private slot to initialize the various tool menus. 5160 Private slot to initialize the various tool menus.

eric ide

mercurial