mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
change internal hostname to app, revert spacing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2ee1d3d794
commit
f97002828f
2 files changed
+14
-14
No files matched your search
+13
-13
@@ -26,7 +26,6 @@ import { InstalledExtension, extensionDiscovery } from "../extensions/extension-
|
||||
import type { LensExtensionId } from "../extensions/lens-extension";
|
||||
import { installDeveloperTools } from "./developer-tools";
|
||||
import { filesystemProvisionerStore } from "./extension-filesystem";
|
||||
import { bindBroadcastHandlers } from "../common/ipc";
|
||||
import { LensProtocolRouterMain } from "./protocol-handler";
|
||||
|
||||
const workingDir = path.join(app.getPath("appData"), appName);
|
||||
@@ -56,16 +55,14 @@ if (!app.requestSingleInstanceLock()) {
|
||||
app.exit();
|
||||
}
|
||||
|
||||
app
|
||||
.on("second-instance", () => {
|
||||
app.on("second-instance", () => {
|
||||
windowManager?.ensureMainWindow();
|
||||
})
|
||||
.on("ready", async () => {
|
||||
});
|
||||
|
||||
app.on("ready", async () => {
|
||||
logger.info(`🚀 Starting Lens from "${workingDir}"`);
|
||||
await shellSync();
|
||||
|
||||
bindBroadcastHandlers();
|
||||
|
||||
powerMonitor.on("shutdown", () => {
|
||||
app.exit();
|
||||
});
|
||||
@@ -138,15 +135,17 @@ app
|
||||
setTimeout(() => {
|
||||
appEventBus.emit({ name: "service", action: "start" });
|
||||
}, 1000);
|
||||
})
|
||||
.on("activate", (event, hasVisibleWindows) => {
|
||||
});
|
||||
|
||||
app.on("activate", (event, hasVisibleWindows) => {
|
||||
logger.info("APP:ACTIVATE", { hasVisibleWindows });
|
||||
|
||||
if (!hasVisibleWindows) {
|
||||
windowManager?.initMainWindow(false);
|
||||
}
|
||||
})
|
||||
.on("will-quit", (event) => {
|
||||
});
|
||||
|
||||
app.on("will-quit", (event) => {
|
||||
// Quit app on Cmd+Q (MacOS)
|
||||
logger.info("APP:QUIT");
|
||||
appEventBus.emit({name: "app", action: "close"});
|
||||
@@ -154,8 +153,9 @@ app
|
||||
clusterManager?.stop(); // close cluster connections
|
||||
|
||||
return; // skip exit to make tray work, to quit go to app's global menu or tray's menu
|
||||
})
|
||||
.on("open-url", (event, rawUrl) => {
|
||||
});
|
||||
|
||||
app.on("open-url", (event, rawUrl) => {
|
||||
// lens:// protocol handler
|
||||
event.preventDefault();
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ export class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
||||
logger.info(`${proto.LensProtocolRouter.LoggingPrefix}: routing ${url.toString()}`);
|
||||
|
||||
switch (url.host) {
|
||||
case "internal":
|
||||
case "app":
|
||||
return this._routeToInternal(url);
|
||||
case "extension":
|
||||
return this._routeToExtension(url);
|
||||
|
||||
Reference in new issue
Block a user