|
@@ -109,6 +109,10 @@ AMNESIC='no'
|
109
|
109
|
# defines the initial keyboard layout
|
110
|
110
|
KEYBOARD_MAP='gb'
|
111
|
111
|
|
|
112
|
+# Strings used for setting the username
|
|
113
|
+MESH_TITLE=$"Freedombone Mesh"
|
|
114
|
+MESH_SET_USERNAME=$"Welcome to the Freedombone mesh.\n\nThe first thing you will need to do is set a username so that other peers can find you."
|
|
115
|
+
|
112
|
116
|
enable_eatmydata_override() {
|
113
|
117
|
chroot $rootdir apt-get install --no-install-recommends -y eatmydata
|
114
|
118
|
if [ -x $rootdir/usr/bin/eatmydata ] && \
|
|
@@ -605,9 +609,9 @@ function mesh_client_startup_applications {
|
605
|
609
|
echo 'while [ ! $INITIAL_TOX_USERNAME ]; do' >> $START_DESKTOP
|
606
|
610
|
echo ' data=$(tempfile 2>/dev/null)' >> $START_DESKTOP
|
607
|
611
|
echo ' trap "rm -f $data" 0 1 2 5 15' >> $START_DESKTOP
|
608
|
|
- echo ' dialog --title $"Freedombone Mesh" \' >> $START_DESKTOP
|
609
|
|
- echo ' --backtitle $"Freedombone Mesh" \' >> $START_DESKTOP
|
610
|
|
- echo ' --inputbox $"\nWelcome to the Freedombone mesh.\n\nThe first thing you will need to do is set a username so that other peers can find you." 12 60 "Anon" 2>$data' >> $START_DESKTOP
|
|
612
|
+ echo " dialog --title \"${MESH_TITLE}\" " >> $START_DESKTOP
|
|
613
|
+ echo " --backtitle \"${MESH_TITLE}\" " >> $START_DESKTOP
|
|
614
|
+ echo " --inputbox \"${MESH_SET_USERNAME}\" 12 60 \"Anon\" 2>$data" >> $START_DESKTOP
|
611
|
615
|
echo ' sel=$?' >> $START_DESKTOP
|
612
|
616
|
echo ' case $sel in' >> $START_DESKTOP
|
613
|
617
|
echo ' 0)' >> $START_DESKTOP
|
|
@@ -633,6 +637,18 @@ function mesh_client_startup_applications {
|
633
|
637
|
echo "Exec=bash -c '~/mesh-desktop.sh'" >> $START_DESKTOP2
|
634
|
638
|
echo 'X-GNOME-Autostart-enabled=true' >> $START_DESKTOP2
|
635
|
639
|
chmod +x $START_DESKTOP2
|
|
640
|
+
|
|
641
|
+ START_DESKTOP3=$rootdir/home/$MY_USERNAME/.config/autostart/set_username.desktop
|
|
642
|
+ echo '[Desktop Entry]' > $START_DESKTOP3
|
|
643
|
+ echo 'Version=1.0' >> $START_DESKTOP3
|
|
644
|
+ echo 'Name=Set Username' >> $START_DESKTOP3
|
|
645
|
+ echo 'Type=Application' >> $START_DESKTOP3
|
|
646
|
+ echo 'Comment=Set username' >> $START_DESKTOP3
|
|
647
|
+ echo "Exec=mate-terminal -e /home/${MY_USERNAME}/mesh-desktop.sh" >> $START_DESKTOP3
|
|
648
|
+ echo 'Icon=user-away' >> $START_DESKTOP3
|
|
649
|
+ echo 'Terminal=false' >> $START_DESKTOP3
|
|
650
|
+ echo 'Categories=Application;' >> $START_DESKTOP3
|
|
651
|
+ chmod +x $START_DESKTOP3
|
636
|
652
|
}
|
637
|
653
|
|
638
|
654
|
function mesh_desktop_icons {
|