瀏覽代碼

Terminal icon on mesh desktop

Bob Mottram 8 年之前
父節點
當前提交
16bd57f871
共有 1 個文件被更改,包括 18 次插入1 次删除
  1. 18
    1
      src/freedombone-image-customise

+ 18
- 1
src/freedombone-image-customise 查看文件

1099
 	echo 'X-GNOME-Autostart-enabled=true' >> $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
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
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
1102
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/.config
1103
+	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
1104
+}
1105
+
1106
+function mesh_desktop_icons {
1107
+	# qTox
1108
+	chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop
1109
+
1110
+	# Terminal
1111
+	echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1112
+	echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1113
+	echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1114
+	echo 'Comment=Use the command line' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1115
+	echo 'TryExec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1116
+	echo 'Exec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1117
+	echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
1118
+
1119
+	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
1104
 }
1120
 }
1105
 
1121
 
1106
 function configure_user_interface {
1122
 function configure_user_interface {
1127
 		chroot "$rootdir" systemctl set-default multi-user.target
1143
 		chroot "$rootdir" systemctl set-default multi-user.target
1128
 
1144
 
1129
 		mesh_client_startup_applications
1145
 		mesh_client_startup_applications
1146
+		mesh_desktop_icons
1130
 
1147
 
1131
 		# change the desktop background
1148
 		# change the desktop background
1132
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then
1149
 		if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then