forked from mirrors/nixpkgs
electrum: fixup Exec lines in .desktop
Not sure why upstream added $HOME/.local/bin to $PATH for these, but IMO that is for users to handle as they see fit. And it's not very nix-like :).
This commit is contained in:
parent
9cae933ce7
commit
a879c72552
|
@ -62,7 +62,10 @@ python3Packages.buildPythonApplication rec {
|
|||
rm -rf $out/${python3.sitePackages}/nix
|
||||
|
||||
substituteInPlace $out/share/applications/electrum.desktop \
|
||||
--replace "Exec=electrum %u" "Exec=$out/bin/electrum %u"
|
||||
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"' \
|
||||
"Exec=$out/bin/electrum %u" \
|
||||
--replace 'Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"' \
|
||||
"Exec=$out/bin/electrum --testnet %u"
|
||||
'';
|
||||
|
||||
checkInputs = with python3Packages; [ pytest ];
|
||||
|
|
Loading…
Reference in a new issue