summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/atom
diff options
context:
space:
mode:
authorBrenton Horne <brentonhorne77@gmail.com>2018-12-06 14:57:30 +1000
committerGitHub <noreply@github.com>2018-12-06 14:57:30 +1000
commitd354f7cbe638715fd3258934ba611b6fa236f2ba (patch)
treed7bd5244bb865a6c6e095486f854c3457a985aa0 /pkgs/applications/editors/atom
parentae49c73644c05f1eaf8fbd5e88d0971e3dd6a8c5 (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.nix3
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/