mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
add debug for locating startup issues
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
4c16b7020d
commit
04ecd02f40
@ -90,7 +90,9 @@ if (process.env.LENS_DISABLE_GPU) {
|
|||||||
app.disableHardwareAcceleration();
|
app.disableHardwareAcceleration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.debug("initializeRemote()");
|
||||||
initializeRemote();
|
initializeRemote();
|
||||||
|
logger.debug("configurePackages()");
|
||||||
configurePackages();
|
configurePackages();
|
||||||
mangleProxyEnv();
|
mangleProxyEnv();
|
||||||
initializers.initIpcMainHandlers();
|
initializers.initIpcMainHandlers();
|
||||||
@ -99,6 +101,8 @@ if (app.commandLine.getSwitchValue("proxy-server") !== "") {
|
|||||||
process.env.HTTPS_PROXY = app.commandLine.getSwitchValue("proxy-server");
|
process.env.HTTPS_PROXY = app.commandLine.getSwitchValue("proxy-server");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.debug("lprm stuff");
|
||||||
|
|
||||||
if (!app.requestSingleInstanceLock()) {
|
if (!app.requestSingleInstanceLock()) {
|
||||||
app.exit();
|
app.exit();
|
||||||
} else {
|
} else {
|
||||||
@ -112,6 +116,8 @@ if (!app.requestSingleInstanceLock()) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
app.on("second-instance", (event, argv) => {
|
app.on("second-instance", (event, argv) => {
|
||||||
|
logger.debug("second-instance message");
|
||||||
|
|
||||||
const lprm = LensProtocolRouterMain.createInstance();
|
const lprm = LensProtocolRouterMain.createInstance();
|
||||||
|
|
||||||
for (const arg of argv) {
|
for (const arg of argv) {
|
||||||
@ -295,6 +301,8 @@ autoUpdater.on("before-quit-for-update", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.on("will-quit", (event) => {
|
app.on("will-quit", (event) => {
|
||||||
|
logger.debug("will-quit message");
|
||||||
|
|
||||||
// This is called when the close button of the main window is clicked
|
// This is called when the close button of the main window is clicked
|
||||||
|
|
||||||
const lprm = LensProtocolRouterMain.getInstance(false);
|
const lprm = LensProtocolRouterMain.getInstance(false);
|
||||||
@ -324,6 +332,8 @@ app.on("will-quit", (event) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.on("open-url", (event, rawUrl) => {
|
app.on("open-url", (event, rawUrl) => {
|
||||||
|
logger.debug("open-url message");
|
||||||
|
|
||||||
// lens:// protocol handler
|
// lens:// protocol handler
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
LensProtocolRouterMain.getInstance().route(rawUrl);
|
LensProtocolRouterMain.getInstance().route(rawUrl);
|
||||||
@ -343,3 +353,5 @@ export {
|
|||||||
Mobx,
|
Mobx,
|
||||||
LensExtensions,
|
LensExtensions,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logger.debug("waiting for messages");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user