git.iko.soy/typeable/nixpkgs
on master help sign in
atom, atom-beta: Fixing Exec= line in app launcher

Prior to this commit the application launchers of Atom and Atom Beta executed `/usr/bin/${pname}` instead of what it is meant to `$out/bin/${pname}`. This is because upstream changed the `Exec=` line from `Exec=/usr/share/${pname}/${pname}` to `Exec=/usr/bin/${pname}` and the `substituteInPlace` line that was in the default.nix file was not appropriately adjusted.

commitd354f7cbe638715fd3258934ba611b6fa236f2ba authorBrenton Horne <brentonhorne77@gmail.com> dateThu 6 Dec 2018, 14:57 (8 years ago) parentae49c73
1 file changed+1−2
pkgs/applications/editors/atom/default.nix+1−2
pkgs/applications/editors/atom/default.nix+1−2
@@ -44,8 +44,7 @@ let
4444 buildCommand = ''
4545 mkdir -p $out/usr/
4646 ar p $src data.tar.xz | tar -C $out -xJ ./usr
47− substituteInPlace $out/usr/share/applications/${pname}.desktop \
48− --replace /usr/share/${pname} $out/bin
47+ sed -i -e "s|Exec=.*$|Exec=$out/bin/${pname}|" $out/usr/share/applications/${pname}.desktop
4948 mv $out/usr/* $out/
5049 rm -r $out/share/lintian
5150 rm -r $out/usr/