ok there seems to be code missing in the link above.
theres nothing in between the quotaion/citation marks. normally, opening and closing xml tags should go there.
i changed my script to this (commented out bits i dont need):
#!/bin/sh
#
# openbox pipe menu to start network connections
# (This script is only useful if sudo is installed, and correctly configured)
echo '<openbox_pipe_menu>'
# for default file:
#echo ''
#echo ''
#echo 'sudo /etc/init.d/network.sh restart'
#echo ''
# for others files:
for file in $(ls /home/tux/.network/)
do
echo '<item label="'"$file"'">'
echo '<action name="Execute"><execute>'
echo "sudo /etc/init.d/network.sh restart /home/tux/.network/$file"
echo '</execute></action>'
echo '</item>'
done
# To stop connections:
#echo ''
#echo ''
#echo 'sudo /etc/init.d/network.sh stop'
#echo ''
echo '</openbox_pipe_menu>'
when i call it i get this:
root@slitaz:/home/tux# /usr/lib/openbox/wifinetworks.sh
<openbox_pipe_menu>
<item label="WiFiKenny">
<action name="Execute"><execute>
sudo /etc/init.d/network.sh restart /home/tux/.network/WiFiKenny
</execute></action>
</item>
<item label="university">
<action name="Execute"><execute>
sudo /etc/init.d/network.sh restart /home/tux/.network/university
</execute></action>
</item>
</openbox_pipe_menu>
and in my /etc/xdg/openbox/menu.xml ive got this in my root-menu.
<menu id="network-menu" label="Network"
execute="/usr/lib/openbox/wifinetworks.sh" />
still get the error..