telegram-desktop: remove crimes

This may have worked 4 years ago, but it most definitely does not work on the binary wrapper.
This commit is contained in:
K900 2023-04-27 00:42:21 +03:00
parent da5c97ee29
commit 99cb935fbf

View File

@ -181,10 +181,7 @@ stdenv.mkDerivation rec {
"''${gappsWrapperArgs[@]}" \
"''${qtWrapperArgs[@]}" \
--prefix LD_LIBRARY_PATH : "${xorg.libXcursor}/lib" \
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \
--set XDG_RUNTIME_DIR "XDG-RUNTIME-DIR"
sed -i $out/bin/telegram-desktop \
-e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
--suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
'';
passthru = {