~lubuntu-dev/lubuntu-default-settings/trunk

« back to all changes in this revision

Viewing changes to usr/bin/startlubuntu

  • Committer: Julien Lavergne
  • Date: 2009-09-05 20:04:28 UTC
  • Revision ID: julien.lavergne@gmail.com-20090905200428-76zc3v1x66vx58x1
Initial commit

------------- This line and the following will be ignored --------------

added:
  COPYING
  Makefile
  debian/
  debian/changelog
  debian/compat
  debian/control
  debian/copyright
  debian/rules
  etc/
  etc/xdg/
  etc/xdg/lxsession/
  etc/xdg/lxsession/Lubuntu/
  etc/xdg/lxsession/Lubuntu/autostart
  etc/xdg/lxsession/Lubuntu/config
  usr/
  usr/bin/
  usr/bin/lubuntu-logout
  usr/bin/openbox-lubuntu
  usr/bin/startlubuntu
  usr/share/
  usr/share/applications/
  usr/share/applications/lubuntu-logout.desktop
  usr/share/applications/lubuntu-screenlock.desktop
  usr/share/lubuntu/
  usr/share/lubuntu/images/
  usr/share/lubuntu/images/logout-banner.png
  usr/share/lubuntu/images/lubuntu-logo.png
  usr/share/lubuntu/openbox/
  usr/share/lubuntu/openbox/menu.xml
  usr/share/lubuntu/openbox/rc.xml
  usr/share/lubuntu/pcmanfm/
  usr/share/lubuntu/pcmanfm/main.lubuntu
  usr/share/lubuntu/wallpapers/
  usr/share/lubuntu/wallpapers/lubuntu-bird-2-1024x768.jpg
  usr/share/lubuntu/wallpapers/lubuntu-bird-2-1280x1024.jpg
  usr/share/lubuntu/wallpapers/lubuntu-bird-2-1280x800.jpg
  usr/share/lxpanel/
  usr/share/lxpanel/profile/
  usr/share/lxpanel/profile/Lubuntu/
  usr/share/lxpanel/profile/Lubuntu/config
  usr/share/lxpanel/profile/Lubuntu/panels/
  usr/share/lxpanel/profile/Lubuntu/panels/panel
  usr/share/xsessions/
  usr/share/xsessions/Lubuntu.desktop

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ -z "$XDG_CONFIG_HOME" ]; then
 
4
    export XDG_CONFIG_HOME="$HOME/.config"
 
5
fi
 
6
 
 
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"
 
12
fi
 
13
 
 
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"
 
19
fi
 
20
 
 
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"
 
26
    done) &
 
27
fi
 
28
 
 
29
# Enable GTK+2 integration for OpenOffice.org, if available.
 
30
export SAL_USE_VCLPLUGIN=gtk
 
31
 
 
32
# Start the LXDE session
 
33
exec /usr/bin/lxsession -s Lubuntu