diff --git a/config/hooks.oem/004-setup-oem.hook.chroot b/config/hooks.oem/004-setup-oem.hook.chroot index 9f595ca..376ac46 100755 --- a/config/hooks.oem/004-setup-oem.hook.chroot +++ b/config/hooks.oem/004-setup-oem.hook.chroot @@ -1,6 +1,12 @@ -#!/bin/sh +#!/bin/bash set -e # hide non-OEM install options from menus rm -f /usr/share/applications/calamares.desktop rm -f /usr/share/applications/pureos-live-installer.desktop + +# show OEM installer in GNOME Shell favourites +pureos_glib_schema_file="/usr/share/glib-2.0/schemas/20_pureos-gnome-settings.gschema.override" +if [[ -e "$pureos_glib_schema_file" ]]; then + sed -i 's/pureos-live-installer.desktop/pureos-live-installer-oem.desktop/' $pureos_glib_schema_file +fi