Terminal icon on mesh desktop

This commit is contained in:
Bob Mottram 2016-06-24 19:22:23 +01:00
parent 447db8b10b
commit 16bd57f871
1 changed files with 18 additions and 1 deletions

View File

@ -1099,8 +1099,24 @@ function mesh_client_startup_applications {
echo 'X-GNOME-Autostart-enabled=true' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
echo 'Name=Tox Chat' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
echo 'Comment=Peer to peer encrypted communications' >> $rootdir/home/$MY_USERNAME/.config/autostart/tox.desktop
chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop
chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/.config
chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
}
function mesh_desktop_icons {
# qTox
chroot "$rootdir" ln -s ~/.config/autostart/tox.desktop ~/Desktop/tox.desktop
# Terminal
echo '[Desktop Entry]' > $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'Name=MATE Terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'Type=Application' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'Comment=Use the command line' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'TryExec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'Exec=mate-terminal' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/terminal.desktop
chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME ~/Desktop
}
function configure_user_interface {
@ -1127,6 +1143,7 @@ function configure_user_interface {
chroot "$rootdir" systemctl set-default multi-user.target
mesh_client_startup_applications
mesh_desktop_icons
# change the desktop background
if [ $MESH_DESKTOP_BACKGROUND_IMAGE ]; then