WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Openbox Window Manager - Core 4.2  (Read 5946 times)

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Openbox Window Manager - Core 4.2
« 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!  :-[

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: Openbox Window Manager - Core 4.2
« Reply #1 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)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Openbox Window Manager - Core 4.2
« Reply #2 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jpakko

  • Newbie
  • *
  • Posts: 7
Re: Openbox Window Manager - Core 4.2
« Reply #3 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

Offline martin

  • Jr. Member
  • **
  • Posts: 87
Re: Openbox Window Manager - Core 4.2
« Reply #4 on: January 01, 2012, 12:16:14 AM »
Yes, it was mentioned at http://forum.tinycorelinux.net/index.php/topic,12191.45.html as well. Looking forward to the update.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Openbox Window Manager - Core 4.2
« Reply #5 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: Openbox Window Manager - Core 4.2
« Reply #6 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!

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Openbox Window Manager - Core 4.2
« Reply #7 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.
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Openbox Window Manager - Core 4.2
« Reply #8 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Openbox Window Manager - Core 4.2
« Reply #9 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.
« Last Edit: January 01, 2012, 07:37:12 PM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline martin

  • Jr. Member
  • **
  • Posts: 87
Re: Openbox Window Manager - Core 4.2
« Reply #10 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.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Openbox Window Manager - Core 4.2
« Reply #11 on: January 03, 2012, 06:07:29 PM »
Posted an update with revisited dynamic menu interface scripts for Core 4.2
10+ Years Contributing to Linux Open Source Projects.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Openbox Window Manager - Core 4.2
« Reply #12 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
10+ Years Contributing to Linux Open Source Projects.

Offline martin

  • Jr. Member
  • **
  • Posts: 87
Re: Openbox Window Manager - Core 4.2
« Reply #13 on: January 06, 2012, 07:32:26 PM »
Sorry yes, just to confirm, the system tools and ondemand menus work just fine. Thank you.