summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2014-05-06 20:50:37 +0200
committerHolger Paradies <retabell@gmx.de>2014-05-06 22:32:54 +0200
commitfed340e097f306f75f862e4ee3960054cf5d4184 (patch)
treeb85534ed1a816db4355c04125dfe72a6db730f54 /config
parent84c8bd59b93546e73d09f336c115622382e087eb (diff)
downloadkanotix-fed340e097f306f75f862e4ee3960054cf5d4184.zip
kanotix-fed340e097f306f75f862e4ee3960054cf5d4184.tar.gz
live-config xbmc awesome option use .dmrc
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9024-lxde-compositor26
1 files changed, 18 insertions, 8 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9024-lxde-compositor b/config/chroot_local-includes/lib/live/config/9024-lxde-compositor
index 16168a5..cb37cee 100755
--- a/config/chroot_local-includes/lib/live/config/9024-lxde-compositor
+++ b/config/chroot_local-includes/lib/live/config/9024-lxde-compositor
@@ -17,6 +17,8 @@ Configure_composit ()
then
touch /home/${LIVE_USERNAME}/.compton
touch /home/${LIVE_USERNAME}/.nocompiz
+ chown 1000:1000 /home/${LIVE_USERNAME}/.compton
+ chown 1000:1000 /home/${LIVE_USERNAME}/.nocompiz
fi
if grep -qs "nocompiz" /proc/cmdline
then
@@ -27,14 +29,22 @@ Configure_composit ()
if [ -x /usr/bin/awesome ]; then
touch /home/${LIVE_USERNAME}/.nocompiz
touch /home/${LIVE_USERNAME}/.awesome-wmanager
- if [ -x /usr/sbin/lightdm ]; then
- if ! [ -d /lib/x86_64-linux-gnu ]; then
- /usr/lib/i386-linux-gnu/lightdm/lightdm-set-defaults -s awesome
- else
- /usr/lib/x86_64-linux-gnu/lightdm/lightdm-set-defaults -s awesome
- fi
- fi
- update-alternatives --set x-window-manager /usr/bin/awesome >/dev/null
+ chown 1000:1000 /home/${LIVE_USERNAME}/.compton
+ chown 1000:1000 /home/${LIVE_USERNAME}/.awesome-wmanager
+ echo "[Desktop]" >/home/${LIVE_USERNAME}/.dmrc
+ echo "Session=awesome" >>/home/${LIVE_USERNAME}/.dmrc
+ chown 1000:1000 /home/${LIVE_USERNAME}/.dmrc
+ fi
+ fi
+
+ if grep -qs "xbmc" /proc/cmdline
+ then
+ if [ -x /usr/bin/xbmc ]; then
+ touch /home/${LIVE_USERNAME}/.nocompiz
+ chown 1000:1000 /home/${LIVE_USERNAME}/.nocompiz
+ echo "[Desktop]" >/home/${LIVE_USERNAME}/.dmrc
+ echo "Session=XBMC" >>/home/${LIVE_USERNAME}/.dmrc
+ chown 1000:1000 /home/${LIVE_USERNAME}/.dmrc
fi
fi
# Creating state file