Adding debian version 0.4.2-3.
[debian/lxde-common.git] / startlxde.in
CommitLineData
097da666
DB
1#!/bin/sh
2
3if [ -z "$XDG_CONFIG_HOME" ]; then
4 export XDG_CONFIG_HOME="$HOME/.config"
5fi
6
7# Ensure the existance of pcmanfm config file
8PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm"
9if [ ! -f "$PCMANFM_CONF_DIR/main.lxde" ]; then
10 mkdir -p "$PCMANFM_CONF_DIR"
11 cp @prefix@/share/lxde/pcmanfm/main.lxde "$PCMANFM_CONF_DIR/main.lxde"
12fi
13
14# Ensure the existance of openbox config file
15OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
16if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
17 mkdir -p "$OPENBOX_CONF_DIR"
18 cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
19fi
20
21# Enable GTK+2 integration for OpenOffice.org, if available.
22export SAL_USE_VCLPLUGIN=gtk
23
24# Start the LXDE session
25exec @prefix@/bin/lxsession -s LXDE