1
0
forked from mir/linux-vm-tools
linux-vm-tools/ubuntu/16.04/config-user.sh

24 lines
615 B
Bash
Raw Normal View History

#! /bin/bash
#
# This script configures the logged in users xsession to properly
# configure unity to launch
#
# Major thanks to: http://c-nergy.be/blog/?p=10752 for the tips.
#
sudo bash -c "cat >~/.xsession <<EOF
/usr/lib/gnome-session/gnome-session-binary --session=ubuntu &
/usr/lib/x86_64-linux-gnu/unity/unity-panel-service &
/usr/lib/unity-settings-daemon/unity-settings-daemon &
for indicator in /usr/lib/x86_64-linux-gnu/indicator-*;
do
basename='basename \${indicator}'
dirname='dirname \${indicator}'
service=\${dirname}/\${basename}/\${basename}-service
\${service} &
done
unity
EOF"