diff --git a/desktop-client/app.py b/desktop-client/app.py index 81f67bf..41fe9e2 100755 --- a/desktop-client/app.py +++ b/desktop-client/app.py @@ -74,7 +74,8 @@ def misc_generate_desktop() -> None: template_path = os.getenv("STREAMLINED_DESKTOP_TEMPLATE") or "./entry.desktop" with Path(template_path).open("r") as fh: temp = Template(fh.read()) - print(temp.substitute(name="Entertainment Decider", exec_path=str(Path(__file__).resolve()))) + exec_path = os.getenv("STREAMLINED_EXEC_PATH") or str(Path(__file__).resolve()) + print(temp.substitute(name="Entertainment Decider", exec_path=exec_path)) MISC_COMMANDS: Dict[str, Callable[..., None]] = { diff --git a/desktop-client/package.nix b/desktop-client/package.nix index b64f5b1..09f61ed 100644 --- a/desktop-client/package.nix +++ b/desktop-client/package.nix @@ -41,7 +41,7 @@ python3Packages.buildPythonPackage { postInstall = '' mkdir --parent $out/share/applications - STREAMLINED_DESKTOP_TEMPLATE=${./entry.desktop} $out/bin/${name} misc generate-desktop-file > $out/share/applications/${name}_uri.desktop + STREAMLINED_DESKTOP_TEMPLATE=${./entry.desktop} STREAMLINED_EXEC_PATH=$out/bin/${name} $out/bin/${name} misc generate-desktop-file > $out/share/applications/${name}_uri.desktop ''; meta = {