From 24d0f3783b64121c74f8306ff4a3b89ab9e7abae Mon Sep 17 00:00:00 2001 From: Filip Gospodinov Date: Fri, 23 Mar 2018 13:05:06 +0100 Subject: [PATCH] electrum.desktop: improve user installation Before, the desktop entry file would only work correctly if the user has added `$HOME/.local/bin` to his or her PATH. The PATH variable is an implementation detail and the user shouldn't be exposed to it. Now, the shell is used to look for executables in the aforementioned folder. System-wide installations remain intact. --- electrum.desktop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum.desktop b/electrum.desktop index d7e919f26..086ed881f 100644 --- a/electrum.desktop +++ b/electrum.desktop @@ -3,7 +3,7 @@ [Desktop Entry] Comment=Lightweight Bitcoin Client -Exec=electrum %u +Exec=sh -c 'PATH="$HOME/.local/bin:$PATH" electrum %u' GenericName[en_US]=Bitcoin Wallet GenericName=Bitcoin Wallet Icon=electrum @@ -17,5 +17,5 @@ MimeType=x-scheme-handler/bitcoin; Actions=Testnet; [Desktop Action Testnet] -Exec=electrum --testnet %u +Exec=sh -c 'PATH="$HOME/.local/bin:$PATH" electrum --testnet %u' Name=Testnet mode