|
@@ -1084,21 +1084,25 @@ function install_syncthing {
|
1084
|
1084
|
}
|
1085
|
1085
|
|
1086
|
1086
|
function mesh_client_startup_applications {
|
|
1087
|
+ if [ ! -d $rootdir/home/$MY_USERNAME/Desktop ]; then
|
|
1088
|
+ mkdir -p $rootdir/home/$MY_USERNAME/Desktop
|
|
1089
|
+ fi
|
|
1090
|
+
|
1087
|
1091
|
if [ ! -d $rootdir/home/$MY_USERNAME/.config/autostart ]; then
|
1088
|
1092
|
mkdir -p $rootdir/home/$MY_USERNAME/.config/autostart
|
1089
|
1093
|
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
|
|
1094
|
+
|
|
1095
|
+ echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1096
|
+ echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1097
|
+ echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1098
|
+ echo 'Comment=Chat, VoIP, Video' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1099
|
+ echo 'TryExec=qtox' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1100
|
+ echo 'Exec=qtox' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1101
|
+ echo 'Icon=qtox' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1102
|
+ echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/tox.desktop
|
|
1103
|
+
|
|
1104
|
+ cp $rootdir/home/$MY_USERNAME/Desktop/tox.desktop $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
|
|
1105
|
+
|
1102
|
1106
|
chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
|
1103
|
1107
|
}
|
1104
|
1108
|
|
|
@@ -1107,9 +1111,6 @@ function mesh_desktop_icons {
|
1107
|
1111
|
mkdir -p $rootdir/home/$MY_USERNAME/Desktop
|
1108
|
1112
|
fi
|
1109
|
1113
|
|
1110
|
|
- # qTox
|
1111
|
|
- chroot "$rootdir" ln -s /home/$MY_USERNAME/.config/autostart/tox.desktop /home/$MY_USERNAME/Desktop/tox.desktop
|
1112
|
|
-
|
1113
|
1114
|
# Terminal
|
1114
|
1115
|
echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1115
|
1116
|
echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
|
@@ -1117,6 +1118,7 @@ function mesh_desktop_icons {
|
1117
|
1118
|
echo 'Comment=Use the command line' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1118
|
1119
|
echo 'TryExec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1119
|
1120
|
echo 'Exec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
|
1121
|
+ echo 'Icon=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1120
|
1122
|
echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
|
1121
|
1123
|
|
1122
|
1124
|
chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop
|