i3: i3-dmenu-desktop can't launch electrum

I’m submitting a…

[x] Bug

Current Behavior

% i3-dmenu-desktop        
ERROR: Your command: exec  "sh -c \"PATH=\\"\\$HOME/.local/bin:\\$PATH\\"; electrum \""
ERROR:                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'title_window_icon', 'mode', 'bar'
[{"success":true},{"success":false,"parse_error":true,"error":"Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'title_window_icon', 'mode', 'bar'","input":"exec  \"sh -c \\\"PATH=\\\\\"\\\\$HOME/.local/bin:\\\\$PATH\\\\\"; electrum \\\"\"","errorposition":"                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"}]
Could not launch i3-msg: 512 at /usr/bin/i3-dmenu-desktop line 493, <GEN1> line 1.
zsh: exit 2     i3-dmenu-desktop

Expected Behavior

The same as gtk-launch electrum and wofi: should work

Reproduction Instructions

Environment

Output of i3 --moreversion 2>&-:

i3 version: 
Binary i3 version:  4.20 (2021-10-19) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.20 (2021-10-19) (pid 7630)
Loaded i3 config:
  /home/sergio/.config/i3/config (main) (last modified: Fri 26 Nov 2021 18:35:33 MSK, 488 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
% grep Exec /usr/share/applications/electrum.desktop 

Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum %u"
Exec=sh -c "PATH=\"\\$HOME/.local/bin:\\$PATH\"; electrum --testnet %u"
Config file

Logfile URL:
- Linux Distribution & Version: debian sid
- Are you using a compositor (e.g., xcompmgr or compton): no

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (16 by maintainers)

Commits related to this issue

Most upvoted comments

I’m sorry, I just completely misread the issue in a hurry 🤦

Sorry, misread

Given that this seems to be an issue with the .desktop file I am closing this. Consider opening an issue on electrum.