瀏覽代碼

Fix dconf mesh script

Bob Mottram 9 年之前
父節點
當前提交
90aaaeaea7
共有 1 個檔案被更改,包括 10 行新增2 行删除
  1. 10
    2
      src/freedombone-image-customise

+ 10
- 2
src/freedombone-image-customise 查看文件

575
 		mkdir -p $rootdir/home/$MY_USERNAME/.config/autostart
575
 		mkdir -p $rootdir/home/$MY_USERNAME/.config/autostart
576
 	fi
576
 	fi
577
 
577
 
578
-	START_DESKTOP=$rootdir/home/$MY_USERNAME/.config/autostart/mesh-desktop
578
+	START_DESKTOP=$rootdir/home/$MY_USERNAME/mesh-desktop.sh
579
 	echo '#!/bin/bash' > $START_DESKTOP
579
 	echo '#!/bin/bash' > $START_DESKTOP
580
 	echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP
580
 	echo 'dconf write /org/mate/caja/desktop/volumes-visible false' >> $START_DESKTOP
581
 	echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP
581
 	echo 'dconf write /org/mate/caja/desktop/computer-icon-visible false' >> $START_DESKTOP
586
 	echo 'dconf write /org/mate/desktop/media-handling/automount-open false' >> $START_DESKTOP
586
 	echo 'dconf write /org/mate/desktop/media-handling/automount-open false' >> $START_DESKTOP
587
 	echo 'dconf write /org/mate/desktop/screensaver/lock-enabled false' >> $START_DESKTOP
587
 	echo 'dconf write /org/mate/desktop/screensaver/lock-enabled false' >> $START_DESKTOP
588
 	chmod +x $START_DESKTOP
588
 	chmod +x $START_DESKTOP
589
-
589
+	chroot "$rootdir" chown $MY_USERNAME:$MY_USERNAME $START_DESKTOP
590
+
591
+	START_DESKTOP2=$rootdir/home/$MY_USERNAME/.config/autostart/mesh-start.desktop
592
+	echo '[Desktop Entry]' > $START_DESKTOP2
593
+	echo 'Type=Application' >> $START_DESKTOP2
594
+	echo 'Name=Mesh start desktop script' >> $START_DESKTOP2
595
+	echo "Exec=bash -c '~/mesh-desktop.sh'" >> $START_DESKTOP2
596
+	echo 'X-GNOME-Autostart-enabled=true' >> $START_DESKTOP2
597
+	chmod +x $START_DESKTOP2
590
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
598
 	chroot "$rootdir" chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
591
 }
599
 }
592
 
600