mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 00:33:59 +00:00
11 lines
248 B
TypeScript
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;
|
|
};
|