-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktop-changes.sh
More file actions
executable file
·39 lines (32 loc) · 1.39 KB
/
desktop-changes.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
set ${SET_X:+-x} -eou pipefail
echo "Tweaking existing desktop config..."
if [[ ${IMAGE} =~ bluefin|bazzite ]]; then
# ensure /opt and /usr/local are proper
if [[ ! -h /opt ]]; then
rm -fr /opt
mkdir -p /var/opt
ln -s /var/opt /opt
fi
if [[ ! -h /usr/local ]]; then
# shellcheck disable=SC2114
rm -fr /usr/local
ln -s /var/usrlocal /usr/local
fi
# remove solaar and input leap, if installed
$DNF -y remove input-leap solaar virt-manager virt-viewer virt-v2v
# ensure no moby-engine packages, we can use sysext if needed
$DNF remove -y containerd docker-buildx docker-cli docker-compose moby-engine runc
fi
if [[ ${IMAGE} =~ bluefin|bazzite-gnome ]]; then
# copy system files
rsync -rvK /ctx/system_files/silverblue/ /
# custom gnome overrides
mkdir -p /tmp/ublue-schema-test &&
find /usr/share/glib-2.0/schemas/ -type f ! -name "*.gschema.override" -exec cp {} /tmp/ublue-schema-test/ \; &&
cp /usr/share/glib-2.0/schemas/*-bos-modifications.gschema.override /tmp/ublue-schema-test/ &&
echo "Running error test for bos gschema override. Aborting if failed." &&
glib-compile-schemas --strict /tmp/ublue-schema-test || exit 1 &&
echo "Compiling gschema to include bos setting overrides" &&
glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null
fi