Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: linuxhelp on January 16, 2013, 06:12:18 AM

Title: Solved TCE "3.x": Openbox /usr/local/tc.openbox.xml empty Apps Menu
Post by: linuxhelp on January 16, 2013, 06:12:18 AM
Older Thinclient 3.8.4 cause Xorg 7.4

the script "/usr/local/bin/openbox_initmenu" does write the

/usr/local/tc.openbox.xml file,

Dump:
Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
<menu id="apps-menu" label="Applications">
<!-- END_TCE -->
</menu>
</openbox_menu>
no Apps..can be seen between App../menu lines!

Solution found a old Script from 2011 TCE with openbox desktop, run after:

$ "tce-load -wi program-name-you-install && sudo sh /home/tc/menu.sh&&filetool.sh -b"

Description:
Step1: install Program Extension
Step2: force update Openbox-Menu,
Step3 :Backup Home

hope this may help someone..

Dump of menu.sh
Code: [Select]
#!bin/sh
# (c) Ali 2011 + Modded by Linuxonlinehelp 01.2013

. /etc/init.d/tc-functions
. /usr/local/bin/openbox_menu_common

TCEMENU=/usr/local/tce.openbox.xml

outputFile="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<openbox_menu
xmlns=\"http://openbox.org/3.4/menu\">\n\
\t<menu id=\"apps-menu\" label=\"Applications\">\n"

cd /usr/local/share/applications
ITEMS=`ls | wc -l`
if [ $ITEMS -gt "0" ]
then
LIST=`ls`
for X in $LIST; do
outputFile="${outputFile}\t\t`writeMenuItem ./"$X"`\n"
done
fi
outputFile="${outputFile}\t</menu>\n</openbox_menu>"
echo -e $outputFile > $TCEMENU
openbox --reconfigure

Title: Re: Solved: Openbox /usr/local/tc.openbox.xml empty Apps Menu
Post by: tinypoodle on January 16, 2013, 01:22:10 PM
Might be more helpful if you would add a notion of "3.x" to topic ;)
Title: Re: Solved TCE "3.x": Openbox /usr/local/tc.openbox.xml empty Apps Menu
Post by: linuxhelp on January 17, 2013, 02:24:54 AM
..done..