icewm-menu-fdo doesn't respect TerminalCommand for terminal applications
Closed this issue · 3 comments
I created a desktop entry for a terminal application but it doesn't show up in the menu using icewm-menu-fdo
. This seems to be because icewm-menu-fdo
is defaulting to running terminal applications with xterm which is not installed. I could verify this by looking at icewm-menu-fdo
's output. This is all while I have TerminalCommand=alacritty
inside of prefoverride
. Restarting IceWM, restarting the session, and restarting the computer doesn't make it appear. Here is the desktop entry in question:
[Desktop Entry]
Type=Application
Version=1.0
Name=MC Editor
GenericName=Text Editor
Icon=editor
Exec=mcedit
Terminal=true
Categories=Development;Utility;ConsoleOnly;
When Terminal is set to false, the application appears in the menu. I am using IceWM 3.4.1.
Unfortunately, icewm-menu-fdo doesn't currently examine preferences or prefoverride. That would be a reasonable improvement, but it would slow it down somewhat. However, if you compile IceWM yourself, you can set your preferred terminal at configure time.
Another option you have is to create a script with the name xterm
which starts your preferred terminal like this:
#!/bin/sh
exec alacritty "$@"
And chmod 755 xterm
.
Also see commit bbidulock/icewm@ca951c1.
Thanks. I ended up just making the desktop entry execute alacritty -e mcedit
and setting Terminal=false
.