diff options
author | Brenton Horne <brentonhorne77@gmail.com> | 2018-12-06 14:57:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 14:57:30 +1000 |
commit | d354f7cbe638715fd3258934ba611b6fa236f2ba (patch) | |
tree | d7bd5244bb865a6c6e095486f854c3457a985aa0 /pkgs/applications/editors/atom | |
parent | ae49c73644c05f1eaf8fbd5e88d0971e3dd6a8c5 (diff) |
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.
Diffstat (limited to 'pkgs/applications/editors/atom')
-rw-r--r-- | pkgs/applications/editors/atom/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/applications/editors/atom/default.nix b/pkgs/applications/editors/atom/default.nix index 834c6bedf3c0..73a9f26a1221 100644 --- a/pkgs/applications/editors/atom/default.nix +++ b/pkgs/applications/editors/atom/default.nix @@ -44,8 +44,7 @@ let buildCommand = '' mkdir -p $out/usr/ ar p $src data.tar.xz | tar -C $out -xJ ./usr - substituteInPlace $out/usr/share/applications/${pname}.desktop \ - --replace /usr/share/${pname} $out/bin + sed -i -e "s|Exec=.*$|Exec=$out/bin/${pname}|" $out/usr/share/applications/${pname}.desktop mv $out/usr/* $out/ rm -r $out/share/lintian rm -r $out/usr/ |