From 5aa00dafe1e706b2001e9840ba772b53ca5314e7 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Aug 28 2024 23:08:00 +0000 Subject: livesys-miraclewm: Pin the installer to the dock and launcher This makes the installer much more visible. --- diff --git a/libexec/livesys/sessions.d/livesys-miraclewm b/libexec/livesys/sessions.d/livesys-miraclewm index 84da2d0..13773c9 100755 --- a/libexec/livesys/sessions.d/livesys-miraclewm +++ b/libexec/livesys/sessions.d/livesys-miraclewm @@ -20,7 +20,15 @@ fi # Show harddisk install on the desktop sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop -mkdir /home/liveuser/Desktop + +# Add the installer icon to the dock +mkdir -p /home/liveuser/.cache +echo 'liveinst' >> /home/liveuser/.cache/nwg-dock-pinned +# Pin the installer icon to the launcher +echo "liveinst.desktop" >> /home/liveuser/.cache/nwg-pin-cache # echoing type liveinst to start the installer echo "echo 'Please type liveinst and press Enter to start the installer'" >> /home/liveuser/.bashrc + +# Ensure the files and folders are owned by liveuser +chown --recursive liveuser:liveuser /home/liveuser/