1
0

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.
This commit is contained in:
Filip Gospodinov
2018-03-23 13:05:06 +01:00
parent d146c369bf
commit 24d0f3783b

View File

@@ -3,7 +3,7 @@
[Desktop Entry] [Desktop Entry]
Comment=Lightweight Bitcoin Client Comment=Lightweight Bitcoin Client
Exec=electrum %u Exec=sh -c 'PATH="$HOME/.local/bin:$PATH" electrum %u'
GenericName[en_US]=Bitcoin Wallet GenericName[en_US]=Bitcoin Wallet
GenericName=Bitcoin Wallet GenericName=Bitcoin Wallet
Icon=electrum Icon=electrum
@@ -17,5 +17,5 @@ MimeType=x-scheme-handler/bitcoin;
Actions=Testnet; Actions=Testnet;
[Desktop Action Testnet] [Desktop Action Testnet]
Exec=electrum --testnet %u Exec=sh -c 'PATH="$HOME/.local/bin:$PATH" electrum --testnet %u'
Name=Testnet mode Name=Testnet mode