Adding debian version 0.5.0-4.
[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
26d3dc88
DB
21# Clean up after GDM (GDM sets the number of desktops to one)
22xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
23
097da666
DB
24# Enable GTK+2 integration for OpenOffice.org, if available.
25export SAL_USE_VCLPLUGIN=gtk
26
27# Start the LXDE session
28exec @prefix@/bin/lxsession -s LXDE