Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Onyarian on December 31, 2011, 06:03:55 AM

Title: Openbox Window Manager - Core 4.2
Post 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?

Quote
* 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!:
Quote
#!/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!  :-[
Title: Re: Openbox Window Manager - Core 4.2
Post by: Onyarian on December 31, 2011, 06:34:21 AM
To make work the System Tools menu:

change in openbox-initmenu the line:
Quote
for D in `ls /usr/share/applications/tinycore-*`; do

with

Quote
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)
Title: Re: Openbox Window Manager - Core 4.2
Post by: bmarkus on December 31, 2011, 06:50:52 AM

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.
Title: Re: Openbox Window Manager - Core 4.2
Post by: jpakko on December 31, 2011, 03:28:28 PM
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
Title: Re: Openbox Window Manager - Core 4.2
Post by: martin on January 01, 2012, 12:16:14 AM
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.
Title: Re: Openbox Window Manager - Core 4.2
Post by: bmarkus on January 01, 2012, 08:25:08 AM

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.
Title: Re: Openbox Window Manager - Core 4.2
Post by: Onyarian on January 01, 2012, 10:46:24 AM

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!
Title: Re: Openbox Window Manager - Core 4.2
Post by: roberts on January 01, 2012, 07:11:32 PM
openbox_ondemand still is not correct as pointing to /opt/.tce-dir which should be /etc/sysconfig/tcedir.
Title: Re: Openbox Window Manager - Core 4.2
Post by: bmarkus on January 01, 2012, 07:17:11 PM
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.
Title: Re: Openbox Window Manager - Core 4.2
Post by: roberts on January 01, 2012, 07:34:03 PM
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.
Title: Re: Openbox Window Manager - Core 4.2
Post by: martin on January 02, 2012, 06:44:06 PM
So my testing would be limited.
I don't mind testing it for you, I use openbox stand-alone.
Title: Re: Openbox Window Manager - Core 4.2
Post by: roberts on January 03, 2012, 06:07:29 PM
Posted an update with revisited dynamic menu interface scripts for Core 4.2
Title: Re: Openbox Window Manager - Core 4.2
Post by: roberts on January 06, 2012, 10:25:54 AM
So my testing would be limited.
I don't mind testing it for you, I use openbox stand-alone.
bump
Title: Re: Openbox Window Manager - Core 4.2
Post by: martin on January 06, 2012, 07:32:26 PM
Sorry yes, just to confirm, the system tools and ondemand menus work just fine. Thank you.