forked from srbala/fedora-kickstarts
desktop: prevent unintended failures in the livesys initscript
Some of the tweaks we do there may fail if the packages containing the touched files are not present. Better be careful.
This commit is contained in:
parent
47eaac1dc1
commit
8141a790b5
@ -27,24 +27,25 @@ cat >> /usr/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.overrid
|
|||||||
lock-enabled=false
|
lock-enabled=false
|
||||||
FOE
|
FOE
|
||||||
|
|
||||||
# Show harddisk install in shell dash
|
# make the installer show up
|
||||||
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
|
if [ -f /usr/share/applications/liveinst.desktop ]; then
|
||||||
# need to move it to anaconda.desktop to make shell happy
|
# Show harddisk install in shell dash
|
||||||
mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
|
sed -i -e 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop ""
|
||||||
|
# need to move it to anaconda.desktop to make shell happy
|
||||||
|
mv /usr/share/applications/liveinst.desktop /usr/share/applications/anaconda.desktop
|
||||||
|
|
||||||
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
|
cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE
|
||||||
[org.gnome.shell]
|
[org.gnome.shell]
|
||||||
favorite-apps=['mozilla-firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'openoffice.org-writer.desktop', 'nautilus.desktop', 'anaconda.desktop']
|
favorite-apps=['mozilla-firefox.desktop', 'evolution.desktop', 'empathy.desktop', 'rhythmbox.desktop', 'shotwell.desktop', 'openoffice.org-writer.desktop', 'nautilus.desktop', 'anaconda.desktop']
|
||||||
FOE
|
FOE
|
||||||
glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
||||||
|
|
||||||
# add installer to user menu
|
# add installer to user menu
|
||||||
mkdir -p ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org
|
mkdir -p ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org
|
||||||
cat >> ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org/metadata.json << FOE
|
cat >> ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org/metadata.json << FOE
|
||||||
{"shell-version": ["2.91.91"], "uuid": "Installer@shell-extensions.fedoraproject.org", "name": "Installer", "description": "Install OS from user menu"}
|
{"shell-version": ["2.91.91"], "uuid": "Installer@shell-extensions.fedoraproject.org", "name": "Installer", "description": "Install OS from user menu"}
|
||||||
FOE
|
FOE
|
||||||
|
|
||||||
cat >> ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org/extension.js << FOE
|
cat >> ~liveuser/.local/share/gnome-shell/extensions/Installer@shell-extensions.fedoraproject.org/extension.js << FOE
|
||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
@ -59,6 +60,11 @@ function main() {
|
|||||||
}
|
}
|
||||||
FOE
|
FOE
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
# rebuild schema cache with any overrides we installed
|
||||||
|
glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
|
||||||
# set up timed auto-login for after 60 seconds
|
# set up timed auto-login for after 60 seconds
|
||||||
cat >> /etc/gdm/custom.conf << FOE
|
cat >> /etc/gdm/custom.conf << FOE
|
||||||
[daemon]
|
[daemon]
|
||||||
@ -67,7 +73,9 @@ AutomaticLogin=liveuser
|
|||||||
FOE
|
FOE
|
||||||
|
|
||||||
# Turn off PackageKit-command-not-found while uninstalled
|
# Turn off PackageKit-command-not-found while uninstalled
|
||||||
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
|
if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
|
||||||
|
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
|
||||||
|
fi
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user