Commit from LXDE Pootle server by user kizito.: 14 of 14 strings translated (0 need...
[lxde/lxde-common.git] / startlxde.in
CommitLineData
2c453b37 1#!/bin/sh
9b8d9fdb 2
16d76acb 3if [ -z "$XDG_CONFIG_HOME" ]; then
847a8e73 4 export XDG_CONFIG_HOME="$HOME/.config"
16d76acb
HJYP
5fi
6
9b8d9fdb 7# Ensure the existance of openbox config file
16d76acb 8OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
9b8d9fdb 9if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
847a8e73 10 mkdir -p "$OPENBOX_CONF_DIR"
ebc89290 11 cp @sysconfdir@/xdg/openbox/LXDE/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
9b8d9fdb
HJYP
12fi
13
28309e59
CW
14# Ensure the existance of the 'Desktop' folder
15if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then
16 . "$XDG_CONFIG_HOME/user-dirs.dirs"
17else
18 XDG_DESKTOP_DIR="$HOME/Desktop"
19fi
20mkdir -p "$XDG_DESKTOP_DIR"
21
5ff1b93c
CW
22# Clean up after GDM (GDM sets the number of desktops to one)
23xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null
24
9bf8adf4
HJYP
25# Enable GTK+2 integration for OpenOffice.org, if available.
26export SAL_USE_VCLPLUGIN=gtk
27
847a8e73
HJYP
28# Launch DBus if needed
29if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
30 eval "$(dbus-launch --sh-syntax --exit-with-session)"
31fi
32
fcefd17a 33export XDG_MENU_PREFIX="lxde-"
4ab3bfe7 34export XDG_CURRENT_DESKTOP="LXDE"
fcefd17a 35
16d76acb 36# Start the LXDE session
0792937e 37exec @prefix@/bin/lxsession -s LXDE -e LXDE