From 1ec3f11d9743f547fd65658d6b56f74cae82e692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 10 Jul 2015 17:08:50 +0200 Subject: [PATCH] Create installer link in live mode, check existence. * FirstBootPrompt as well as the Installer do not exist on the minimum image, so take this into account when making the startup target decisions. --- data/launch/user | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/launch/user b/data/launch/user index b552fd5f98..20950ac895 100644 --- a/data/launch/user +++ b/data/launch/user @@ -10,6 +10,15 @@ target desktop { launch /system/Deskbar legacy } + + job create-installer-link { + # When run from a read-only medium a.k.a. live desktop + if { + read_only + file_exists /boot/system/apps/Installer + } + launch /bin/ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer + } } target first_boot { @@ -22,6 +31,7 @@ target installer { run { if { + file_exists /system/bin/FirstBootPrompt or { not file_exists /boot/home/config/settings/Locale\ settings read_only