I think we are in agreement, don’t see the need for arguing. Happy to concede I am wrong about anything and everything as long as the path forward is a positive one.
Hi there. I don’t want to create a separate thread for this issue so I decided to post here.
I just finished following the new guide on how to use Electrum wallet.
Electrum was installed succesfully, however after clicking on its icon in the menu or typing electrum-appimage into the console, nothing happens for me. Of course I’m using the latest Whonix, never experienced any problems with it until now.
Is the issue on my part? How do I troubleshoot?
user@host:~$ bash -x /usr/bin/electrum-appimage
+ set -e
+ '[' -f /usr/lib/helper-scripts/pre.bsh ']'
+ source /usr/lib/helper-scripts/pre.bsh
++ '[' -o xtrace ']'
++ XTRACE=0
++ set -o errtrace
+++ mktemp
++ TEMP_FILE_PRE_BSH=/tmp/tmp.zjkQmrVRTs
++ '[' 0 = 0 ']'
++ true 'INFO: Setting DEBDEBUG to 1, because xtrace (-x) is set.'
++ DEBDEBUG=1
++ '[' 1 = 1 ']'
++ set -x
++ colors
++ '[' xterm-256color = '' ']'
++ [[ -t 2 ]]
+++ type -t errorhandlergeneral
++ '[' '' = function ']'
++ trap error_handler_pre ERR
++ bash -n /usr/lib/helper-scripts/pre.bsh
++ bash -n /usr/bin/electrum-appimage
++ own_filename=electrum-appimage
++ source_config_folder
++ pre_bsh_settings_folder=_maint.d
++ shopt -s nullglob
++ local i
++ shopt -u nullglob
++ unset skip_script
++ '[' electrum-appimage = '' ']'
+ shopt -s nullglob
+ for file_name in /usr/share/binaries-freedom/electrum-appimage/*
+ test -x /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage
+ /usr/share/binaries-freedom/electrum-appimage/electrum-3.3.8-x86_64.AppImage
(python3.6:2490): dbind-WARNING **: 12:34:31.804: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
+ exit 0
Electrum launched succesfully issuing this command. Clicking on the icon in the menu or typing bare electrum-appimage into the terminal still don’t work.
And for the following commands.
user@host:~$ ls -la /usr/share/binaries-freedom/electrum-appimage/
total 48212
drwxr-xr-x 2 root root 4096 Aug 21 00:15 .
drwxr-xr-x 3 root root 4096 Aug 21 00:15 ..
-rwxr-xr-x 1 root root 49356776 Aug 9 10:15 electrum-3.3.8-x86_64.AppImage
-rw-r--r-- 1 root root 833 Aug 9 10:15 electrum-3.3.8-x86_64.AppImage.asc
user@host:~$ dpkg -l | grep binaries-freedom
ii binaries-freedom 0.6-1 all Freedom Software Binaries
is taken from Debian electrum package and just modified to append -appimage. I did that to keep the diff to “upstream” implementation close. But it’s not very important. That feature only allow putting a custom electrum-appimage script into ~/.local/bin folder, which probably few are doing. ~/bin should be usable anyhow, but untested.
I wasn’t sure whether you meant to change the entire line into
electrum-appimage
or into
Exec=electrum-appimage
Nonetheless I tried both and neither fixed it. The first one caused the menu icon to disappear completely and the second one had the menu icon but still wouldn’t start electrum.
Now that I think of it, could it be somehow caused by the fact that my whonix workstation is not a fresh install, but an upgraded one from whonix 14? I remember reading something on the upgrading guide page about desktop files change between whonix 14 and 15.
Are you sure it’s caused by desktop files though? Since typing electrum-appimage into the terminal doesn’t work either.
Do you have any ideas on what next steps could be taken to troubleshoot this?
For now I’ve changed the Exec= line in /usr/share/applications/electrum-appimage.desktop into Exec=bash -x /usr/bin/electrum-appimage, which for some reason works, but I know it’s only a workaround and the fact that the electrum-appimage command still doesn’t work is kinda bugging me.
It’s supposed to be always the same stable wrapper script name. No need to type the full path to the AppImage.
While the AppImage and OpenPGP signature can stay in /usr/share/binaries-freedom/electrum-appimage folder.
Future use:
Placing a default configuration file at first start that enables stream isolation.
Future potential use:
Mandatory access control (MAC) such as firejail.
Signature verification before starting the binary. (Not sure that will improve security a lot since I verify the signature when downloading electrum before git committing it to the pacakge.)