3
if [ -z "$XDG_CONFIG_HOME" ]; then
4
export XDG_CONFIG_HOME="$HOME/.config"
7
# Ensure the existance of pcmanfm config file
8
PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm"
9
if [ ! -f "$PCMANFM_CONF_DIR/main.lubuntu" ]; then
10
mkdir -p "$PCMANFM_CONF_DIR"
11
cp /usr/share/lubuntu/pcmanfm/main.lubuntu "$PCMANFM_CONF_DIR/main.lubuntu"
14
# Ensure the existance of openbox config file
15
OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
16
if [ ! -f "$OPENBOX_CONF_DIR/lubuntu-rc.xml" ]; then
17
mkdir -p "$OPENBOX_CONF_DIR"
18
cp /usr/share/lubuntu/openbox/rc.xml "$OPENBOX_CONF_DIR/lubuntu-rc.xml"
21
# Workaround for gdm, openbox and the number of desktops
22
NUMBER_DESKTOPS=`grep \<number\> "$OPENBOX_CONF_DIR/llubuntu-rc.xml" | awk -F \> {'print $2}' | awk -F \< {'print $1}'`
23
if test x"`which wmctrl 2>/dev/null`" != x""; then
24
(until [ `wmctrl -d | wc -l ` = "$NUMBER_DESKTOPS" ];do
25
wmctrl -n "$NUMBER_DESKTOPS"
29
# Enable GTK+2 integration for OpenOffice.org, if available.
30
export SAL_USE_VCLPLUGIN=gtk
32
# Start the LXDE session
33
exec /usr/bin/lxsession -s Lubuntu