using openbox, some apps, if installed like pcmanfm or netsurf,
will not work using desktop menu.
I find the menu file is /usr/local/tce.openbox.xml
and the command in this file is wrong.
I modified this file and the menu system can work now
but after reboot it revert to that bad state.
even if saved to mydata.tgz by add it to /opt/.filetool.lst
turns out that the menu is dynamicly generated after every reboot
after some further digging,
from command "openbox_makemenu" I see that
it use function "writeMenuItem" from "openbox_menu_common"
to strip out the exec command from *.desktop file
in folder /usr/local/share/applications
the problem is , some
freedesktop parameters begin with "%" seems should NOT be included in the menu
test:
tc@box:~$ . /etc/init.d/tc-functions
tc@box:~$ . /usr/local/bin/openbox_menu_common
tc@box:~$ writeMenuItem /usr/local/share/applications/netsurf.desktop
<item label="netsurf"> <action name="Execute"> <command>netsurf-gtk %u</command> </action> </item>
tc@box:~$
as this, the command stripped is "
netsurf-gtk %u", which is bad,
this won't work.
need only "netsurf-gtk" this part,
other menu like wbar or jwm don't have such problem
is this a bug or trival thing to be ignored?
seems openbox is old and never get updated.
maybe some kind guy update it a bit?
Title: openbox.tcz
Description: Highly configurable, next generation window manager
Version: 3.5.2
Author: Dana Jensens, Mikael Magnusson, Derek Foreman, Tore Anderson and others
Original-site: http://openbox.org
Copying-policy: GPL v2
Size: 254k
Extension_by: bmarkus
Tags: WINDOW MANAGER
Comments: Binaries only
----
Compiled for 5.x
Change-log: 2013/08/06 First version, 3.4.11.2
2013/08/13 Fixed TC integration
Current: 2013/08/21 Updated to 3.5.2