Skip to content

Commit

Permalink
openbox: Adding LXDE config
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Apr 28, 2014
1 parent 9150c91 commit 5d5c462
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lightdm_greeter_config=/etc/lightdm/lightdm-gtk-greeter.conf
custom_lightdm_greeter_config=/usr/share/kano-desktop/lightdm/lightdm-gtk-greeter.conf

openbox_rc=/etc/xdg/openbox/rc.xml
lxde_openbox_rc=/etc/xdg/openbox/LXDE/rc.xml
custom_openbox_rc=/usr/share/kano-desktop/openbox/rc.xml

lightdm_config=/etc/lightdm/lightdm.conf
Expand Down Expand Up @@ -48,6 +49,9 @@ case "$1" in
cp $openbox_rc $openbox_rc-old
cat $custom_openbox_rc > $openbox_rc

cp $lxde_openbox_rc $lxde_openbox_rc-old
cat $custom_openbox_rc > $lxde_openbox_rc

# Configure lightdm
cp $lightdm_greeter_config $lightdm_greeter_config-old
cat $custom_lightdm_greeter_config > $lightdm_greeter_config
Expand Down
5 changes: 5 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#

openbox_rc=/etc/xdg/openbox/rc.xml
lxde_openbox_rc=/etc/xdg/openbox/LXDE/rc.xml

lightdm_greeter_config=/etc/lightdm/lightdm_gtk_greeter.conf
lightdm_config=/etc/lightdm/lightdm.conf
Expand All @@ -27,6 +28,10 @@ case "$1" in
mv $openbox_rc-old $openbox_rc
fi

if [ -e "$lxde_openbox_rc-old" ]; then
mv $lxde_openbox_rc-old $lxde_openbox_rc
fi

# Revert old lightdm greeter config
if [ -e "$lightdm_greeter_config-old" ]; then
mv $lightdm_greeter_config-old $lightdm_greeter_config
Expand Down

0 comments on commit 5d5c462

Please sign in to comment.