WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Solved TCE "3.x": Openbox /usr/local/tc.openbox.xml empty Apps Menu  (Read 2004 times)

Offline linuxhelp

  • Newbie
  • *
  • Posts: 17
    • www.linuxonlinehelp.de
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

« Last Edit: January 17, 2013, 02:24:35 AM by linuxhelp »
www.linuxonlinehelp.de
Nonprofit Linux PC & Server Support

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Solved: Openbox /usr/local/tc.openbox.xml empty Apps Menu
« Reply #1 on: January 16, 2013, 01:22:10 PM »
Might be more helpful if you would add a notion of "3.x" to topic ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline linuxhelp

  • Newbie
  • *
  • Posts: 17
    • www.linuxonlinehelp.de
Re: Solved TCE "3.x": Openbox /usr/local/tc.openbox.xml empty Apps Menu
« Reply #2 on: January 17, 2013, 02:24:54 AM »
..done..
www.linuxonlinehelp.de
Nonprofit Linux PC & Server Support