NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.12k forks source link

ulauncher, wrong executable path at shipped systemd user service. #218425

Open mabequinho opened 1 year ago

mabequinho commented 1 year ago

Describe the bug

nix/store/xxxxxx-ulauncher-5.15.0/share/systemd/user/ulauncher.service has ExecStart=env GDK_BACKEND=x11 /usr/bin/ulauncher --hide-window instead of nix/store executable path.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install ulauncher
  2. systemctl --user enable --now ulauncher.service

Expected behavior

Launch ulauncher on the background

Additional context

Installed using home-manager.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.95, NixOS, 23.05 (Stoat), 23.05.20230225.b1f87ca`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.2`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Artturin commented 1 year ago

Please submit a pr replacing the path using substituteInPlace in postInstall