1
0
forked from mir/linux-vm-tools
linux-vm-tools/ubuntu/16.04/config-user.sh
Justin Terry (VM) 7b9d8fba58 Updates the script for 16.04.3 execution.
Adds a few checks to avoid double cloning the repos if rerun multiple times.
Fixes a bug where we check for file status not directory status for the xrdp/xorgxrdp repos.
Adds the post script to be run the the logon user account to allow the Unity panels to load.
2018-01-09 13:05:11 -08:00

24 lines
615 B
Bash

#! /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"