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