teams: Do $PATH lookup in teams.desktop instead of hardcoding derivation

See db236e588d "steam: Do $PATH lookup in steam.desktop [...]".
tl;dr: Otherwise widget/panel/desktop icons in DEs like KDE break.

I verified that there are no other (executable) paths in the .desktop
file and therefore went for this minimal diff.
This commit is contained in:
Klemens Nanni 2020-11-05 02:12:49 +01:00 committed by Andreas Rammhold
parent e0f258f596
commit 5e12d4b409
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86

View File

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
mv share $out/share
substituteInPlace $out/share/applications/teams.desktop \
--replace /usr/bin/ $out/bin/
--replace /usr/bin/ ""
ln -s $out/opt/teams/teams $out/bin/