|
@@ -1083,6 +1083,26 @@ function install_syncthing {
|
1083
|
1083
|
echo 'install_syncthing'
|
1084
|
1084
|
}
|
1085
|
1085
|
|
|
1086
|
+function mesh_client_startup_applications {
|
|
1087
|
+ if [ ! -d $rootdir/home/$MY_USERNAME/.config/autostart ]; then
|
|
1088
|
+ mkdir -p $rootdir/home/$MY_USERNAME/.config/autostart
|
|
1089
|
+ fi
|
|
1090
|
+ echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1091
|
+ echo 'Version=1.0' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1092
|
+ echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1093
|
+ echo 'Exec=qtox %u' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1094
|
+ echo 'TryExec=qtox' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1095
|
+ echo 'Icon=qtox' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1096
|
+ echo 'Terminal=false' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1097
|
+ echo 'Hidden=false' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1098
|
+ echo 'NoDisplay=false' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1099
|
+ echo 'X-GNOME-Autostart-enabled=true' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1100
|
+ echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1101
|
+ echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1102
|
+ chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop
|
|
1103
|
+ chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/.config
|
|
1104
|
+}
|
|
1105
|
+
|
1086
|
1106
|
function configure_user_interface {
|
1087
|
1107
|
if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
|
1088
|
1108
|
return
|
|
@@ -1106,6 +1126,8 @@ function configure_user_interface {
|
1106
|
1126
|
|
1107
|
1127
|
chroot "$rootdir" systemctl set-default multi-user.target
|
1108
|
1128
|
|
|
1129
|
+ mesh_client_startup_applications
|
|
1130
|
+
|
1109
|
1131
|
# change the desktop background
|
1110
|
1132
|
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|
1111
|
1133
|
if [ -f $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
|