drmullins
Posts: 43
Joined: Fri Jun 23, 2017 9:22 pm

Openbox lxde-pi-rc.xml configuration problem Nov 18 Raspbian Stretch

Fri Feb 08, 2019 5:58 pm

I have been configuring as follows :
- use pipanel to set desktop properties and system font
- use obconf to set windows properties (theme, appearance and mouse)
- use lxappearance to set widget theme and icon theme
I have done this successfully 45 (!) times with previous versions of Raspbian (Jessie and Stretch)

However with Nov 18 version of Raspbian this does not work properly for me – after using pipanel followed by obconf the windows buttons stopped working !

I deleted /home/pi/.config/openbox/lxde-pi-rc.xml
I ran pipanel and the file was re-created but in a strange non-standard format with only two lines and 394 characters.
I ran obconf and the file was replaced by 101 lines of contents.
At this point the windows buttons stopped working.
Clearly neither of these utilities can properly handle a missing or malformed /home/pi/.config/openbox/lxde-pi-rc.xml file

I therefore ran the following script to restore the correct lxde-pi-rc.xml file and rebooted. After this all was working normally – fixing the regression.

# Pre-configure openbox (Raspbian Stretch Nov 18)
cat /home/pi/.config/openbox/lxde-pi-rc.xml | grep "Do not edit" >/dev/null
if [ $? == 1 ] || [ ! -e /home/pi/.config/openbox/lxde-pi-rc.xml ] ; then
echo /home/pi/.config/openbox/lxde-pi-rc.xml invalid or missing
read -p "Pre-configure openbox y/n ?" GO
if [ x$GO == xy ] || [ x$GO == xY ] ; then
if [ -e /home/pi/.config/openbox/lxde-pi-rc.xml ] ; then
rm /home/pi/.config/openbox/lxde-pi-rc.xml
fi
if [ ! -d /home/pi/.config/openbox ] ; then
mkdir /home/pi/.config/openbox
echo /home/pi/.config/openbox created
fi
cp /etc/xdg/openbox/lxde-pi-rc.xml /home/pi/.config/openbox/
echo lxde-pi-rc.xml copied
sed -i 's/>LIMC</>NLIMC</g' /home/pi/.config/openbox/lxde-pi-rc.xml
if [ $? == 0 ] ; then
echo LIMC changed to NLIMC
else
echo LIMC not found
fi
fi
else
echo /home/pi/.config/openbox/lxde-pi-rc.xml present and valid
fi

klricks
Posts: 6591
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Openbox lxde-pi-rc.xml configuration problem Nov 18 Raspbian Stretch

Fri Feb 08, 2019 6:09 pm

There were problems with obconf and lxappearance which have been fixed.

Code: Select all

sudo apt update
sudo apt upgrade 
Unless specified otherwise my response is based on the latest and fully updated Raspbian Buster w/ Desktop OS.

drmullins
Posts: 43
Joined: Fri Jun 23, 2017 9:22 pm

Re: Openbox lxde-pi-rc.xml configuration problem Nov 18 Raspbian Stretch

Fri Feb 08, 2019 6:19 pm

Thanks - I have been well aware of the problems with obconf and lxappearance-obconf and have commented in the forums.

Before the problems with those utilities were fixed they would not even run !

My configuration problem occurs with a fully updated system

Return to “Raspbian”