Files
hydra/src/main/events/helpers/parse-executable-path.ts

11 lines
248 B
TypeScript

import { shell } from "electron";
export const parseExecutablePath = (path: string) => {
if (process.platform === "win32" && path.endsWith(".lnk")) {
const { target } = shell.readShortcutLink(path);
return target;
}
return path;
};