|
@@ -1099,13 +1099,13 @@ function mesh_client_startup_applications {
|
1099
|
1099
|
echo 'X-GNOME-Autostart-enabled=true' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
1100
|
1100
|
echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
1101
|
1101
|
echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
1102
|
|
- chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/.config
|
1103
|
|
- chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
|
|
1102
|
+ chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
|
|
1103
|
+ chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
|
1104
|
1104
|
}
|
1105
|
1105
|
|
1106
|
1106
|
function mesh_desktop_icons {
|
1107
|
1107
|
# qTox
|
1108
|
|
- chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop
|
|
1108
|
+ chroot "$rootdir" ln -s /home/$MY_USERNAME/.config/autostart/tox.desktop /home/$MY_USERNAME/Desktop/tox.desktop
|
1109
|
1109
|
|
1110
|
1110
|
# Terminal
|
1111
|
1111
|
echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
|
@@ -1116,7 +1116,7 @@ function mesh_desktop_icons {
|
1116
|
1116
|
echo 'Exec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1117
|
1117
|
echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1118
|
1118
|
|
1119
|
|
- chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
|
|
1119
|
+ chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
|
1120
|
1120
|
}
|
1121
|
1121
|
|
1122
|
1122
|
function configure_user_interface {
|
|
@@ -1220,7 +1220,9 @@ username=$MY_USERNAME
|
1220
|
1220
|
echo $"warning: creating initial user $username with well known password!"
|
1221
|
1221
|
password=$MY_PASSWORD
|
1222
|
1222
|
chroot "$rootdir" adduser --gecos $username --disabled-password $username
|
1223
|
|
-echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
|
|
1223
|
+if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" ]]; then
|
|
1224
|
+ echo $username:$password | chroot $rootdir /usr/sbin/chpasswd
|
|
1225
|
+fi
|
1224
|
1226
|
chroot "$rootdir" adduser $username sudo
|
1225
|
1227
|
|
1226
|
1228
|
case "$MACHINE" in
|