diff --git a/src/main/index.ts b/src/main/index.ts index 10399beb..760b8283 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -53,8 +53,8 @@ app.whenReady().then(async () => { electronApp.setAppUserModelId("site.hydralauncher.hydra"); protocol.handle("local", (request) => { - const filePath = request.url.slice("local://".length); - return net.fetch(url.pathToFileURL(filePath).toString()); + const filePath = request.url.slice("local:".length); + return net.fetch(url.pathToFileURL(decodeURI(filePath)).toString()); }); await dataSource.initialize();