Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: Onyarian on December 31, 2011, 06:03:55 AM
-
Until now I have utilized tc4.1+openbox+bmpanel, now updated with core4.2+Xorg+Xprogs+openbox+wbar+bmpanel I don't have the ondemand menu entry, and the System tools menu entry is empty. Is because openbox is not updated? or I have missing something?
* Updated interface files for supported window manager extensions:
flwm_topside.tcz, flwm.tcz, fluxbox.tcz, hackedbox.tcz, icewm.tcz, icewm-full.tcz, jwm-snapshot.tcz, jwm.tcz
Having similar issues with Openbox. No love for Openbox in the updates to all the window managers? Is another WM significantly better? I am used to and totally love the XML style config for Openbox menu entries.
I don't see any interface files in the openbox extension. Use appbrowser Files tab on selected openbox.tcz.
Therefore I would not expect such functionality and therefore not a Core 4.2 issue but an extension issue.
The list files in appbrowser is wrong! :o
there are more files in /usr/local/bin like:
openbox-ondemand
openbox-initmenu
openbox-makemenu
openbox-menu-common
openbox-restart
openbox-setbackground
I have prove to change in openbox-ondemand the TCEDIR and now the ondemand menu works!:
#!/bin/sh
# (c) Robert Shingledecker 2010
. /etc/init.d/tc-functions
ONDEMAND=/home/"$USER"/.config/openbox/ondemand.xml
TCEDIR=/etc/sysconfig/tcedir
#TCEDIR="$(cat /opt/.tce_dir)" <---- OLD ONE
process(){
TMP="/tmp/openbox.$$" && TMP2="/tmp/openbox2.$$"
echo "<item label=\""${1}"\"> <action name=\"Execute\"> <command>"$TCEDIR/ondemand/${1}"</command> </action> </item>" > "$TMP"
merge "$TMP" "$ONDEMAND" "END_ONDEMAND" > "$TMP2"
mv "$TMP2" "$ONDEMAND"
rm "$TMP"
}
if [ ! -s "$ONDEMAND" ]; then
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <openbox_menu xmlns=\"http://openbox.org/3.4/menu\">" > "$ONDEMAND"
echo "<menu id=\"ondemand-menu\" label=\"OnDemand\">" >> "$ONDEMAND"
echo "<!-- END_ONDEMAND -->" >> "$ONDEMAND"
echo "</menu> </openbox_menu>" >> "$ONDEMAND"
sync
fi
if [ -n "$1" ]; then
process "$1"
else
rm /home/"$USER"/.config/openbox/ondemand.xml 2>/dev/null
if [ -d "$TCEDIR"/ondemand ] && [ "$(ls -A ${TCEDIR}/ondemand)" ]; then
> /home/"$USER"/.config/openbox/ondemand.xml
for O in `ls "$TCEDIR"/ondemand|grep -v ".img$"`; do openbox_ondemand ${O}; done
fi
fi
but I don't find to make work the System Tools menu! :-[
-
To make work the System Tools menu:
change in openbox-initmenu the line:
for D in `ls /usr/share/applications/tinycore-*`; do
with
for D in `ls /usr/local/share/applications/tinycore-*`; do
Is possible to change openbox.tcz in the repository with one with this changes?
(Perhaps are only necessary this two changes)
-
Is possible to change openbox.tcz in the repository with one with this changes?
(Perhaps are only necessary this two changes)
Will take a look in next days.
-
The Xprogs update replaces /usr/share/applications with /usr/local/share/applications. This breaks /usr/local/bin/openbox_initmenu here:
for D in `ls /usr/share/applications/tinycore-*`; do
writeMenuItem "$D" >> "$SYSMENU"
done
-
Yes, it was mentioned at http://forum.tinycorelinux.net/index.php/topic,12191.45.html (http://forum.tinycorelinux.net/index.php/topic,12191.45.html) as well. Looking forward to the update.
-
Is possible to change openbox.tcz in the repository with one with this changes?
(Perhaps are only necessary this two changes)
Will take a look in next days.
Corrected version sent.
-
Is possible to change openbox.tcz in the repository with one with this changes?
(Perhaps are only necessary this two changes)
Will take a look in next days.
Corrected version sent.
Thanks bmarkus!
-
openbox_ondemand still is not correct as pointing to /opt/.tce-dir which should be /etc/sysconfig/tcedir.
-
openbox_ondemand still is not correct as pointing to /opt/.tce-dir which should be /etc/sysconfig/tcedir.
Thanks, I will fix it. To be honest I'm using Openbox only with a LXDE and not as stand alone application therefore I'm not familiar with this extra scripts provided by Robert.
-
True, openbox has a dual life as the WM in LXDE as well as stand-alone. Therefore requires testing in both environments. I am willing to modify, but I am not listed as the maintainer and not an LXDE user. So my testing would be limited.
-
So my testing would be limited.
I don't mind testing it for you, I use openbox stand-alone.
-
Posted an update with revisited dynamic menu interface scripts for Core 4.2
-
So my testing would be limited.
I don't mind testing it for you, I use openbox stand-alone.
bump
-
Sorry yes, just to confirm, the system tools and ondemand menus work just fine. Thank you.