130 Main entry point into the application. |
130 Main entry point into the application. |
131 """ |
131 """ |
132 global app |
132 global app |
133 |
133 |
134 from PyQt5.QtGui import QGuiApplication |
134 from PyQt5.QtGui import QGuiApplication |
135 QGuiApplication.setDesktopFileName("eric6_browser.desktop") |
135 QGuiApplication.setDesktopFileName("eric7_browser.desktop") |
136 |
136 |
137 options = [ |
137 options = [ |
138 ("--config=configDir", |
138 ("--config=configDir", |
139 "use the given directory as the one containing the config files"), |
139 "use the given directory as the one containing the config files"), |
140 ("--private", "start the browser in private browsing mode"), |
140 ("--private", "start the browser in private browsing mode"), |
172 if res > 0: |
172 if res > 0: |
173 if len(sys.argv) > 1: |
173 if len(sys.argv) > 1: |
174 client.processArgs(sys.argv[1:]) |
174 client.processArgs(sys.argv[1:]) |
175 sys.exit(0) |
175 sys.exit(0) |
176 elif res < 0: |
176 elif res < 0: |
177 print("eric6_browser: {0}".format(client.errstr())) |
177 print("eric7_browser: {0}".format(client.errstr())) |
178 # __IGNORE_WARNING_M801__ |
178 # __IGNORE_WARNING_M801__ |
179 sys.exit(res) |
179 sys.exit(res) |
180 |
180 |
181 res = Startup.simpleAppStartup(sys.argv, |
181 res = Startup.simpleAppStartup(sys.argv, |
182 appinfo, |
182 appinfo, |