Skip to content

Commit c96bc6f

Browse files
authored
feat: add command to support rebasing (#989)
1 parent 79146b8 commit c96bc6f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

system_files/desktop/shared/usr/share/ublue-os/just/80-bazzite.just

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ restore-original-terminal:
1717
echo "Done. Change your default Terminal in System Settings to complete the swap."
1818
fi
1919

20+
# Install System Flatpaks (Support for Rebasing)
21+
_install-system-flatpaks:
22+
#!/usr/bin/bash
23+
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
24+
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
25+
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
26+
FLATPAKS="gnome_flatpaks/flatpaks"
27+
else
28+
FLATPAKS="kde_flatpaks/flatpaks"
29+
fi
30+
FLATPAK_LIST="$(curl https://raw.githubusercontent.com/ublue-os/bazzite/main/scripts/${FLATPAKS} | tr '\n' ' ')"
31+
flatpak --system -y install ${FLATPAK_LIST}
32+
2033
# Install Bazzite's Steam Game Mode Startup Video
2134
install-gamemode-video:
2235
mkdir -p $HOME/.local/share/Steam/config/uioverrides/movies

0 commit comments

Comments
 (0)