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
- Fix i3-dmenu-desktop quoting Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the level of escap... — committed to stapelberg/i3 by stapelberg 2 years ago
- Fix i3-dmenu-desktop quoting Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the level of escap... — committed to stapelberg/i3 by stapelberg 2 years ago
- Fix i3-dmenu-desktop quoting Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the level of escap... — committed to stapelberg/i3 by stapelberg 2 years ago
- Fix i3-dmenu-desktop quoting (#5162) Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the lev... — committed to i3/i3 by stapelberg 2 years ago
- Fix i3-dmenu-desktop quoting (#5162) Commit 70f23caa9a18afc146f696fdf7d2481e5f7f0101 introduced new issues. Instead of distinguishing " and \, as that commit attempted, let’s instead keep the lev... — committed to i3/i3 by stapelberg 2 years ago
- fix #4697, adds backslashes quotation for exec (#4699) Signed-off-by: Sergio E. Nemirowski <sergio@outerface.net> — committed to rsgowman/i3 by 532910 3 years ago
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.