Skip to content

Commit

Permalink
Fixed overwrites of Bazzite files from Bluefin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkrai committed Jun 13, 2024
1 parent 02f284c commit e684d56
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 8 deletions.
11 changes: 11 additions & 0 deletions files/files/shared/usr/etc/profile.d/askpass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/bash

IMAGE_INFO="/usr/share/ublue-os/image-info.json"
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)

if [[ ${BASE_IMAGE_NAME} == 'bazzite' ]]; then
SUDO_ASKPASS='/usr/bin/ksshaskpass'
elif [[ ${BASE_IMAGE_NAME} == 'bazzite-gnome' ]]; then
SUDO_ASKPASS='/usr/libexec/openssh/gnome-ssh-askpass'
fi
export SUDO_ASKPASS
5 changes: 5 additions & 0 deletions files/files/shared/usr/etc/profile.d/neofetch.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/fish
#shellcheck disable=all

# Stomping on this to avoid conflicts with Bazzite alises
# alias neofetch=fastfetch
5 changes: 5 additions & 0 deletions files/files/shared/usr/share/fish/vendor_conf.d/neofetch.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/fish
#shellcheck disable=all

# Stomping on this to avoid conflicts with Bazzite alises
# alias neofetch=fastfetch
2 changes: 1 addition & 1 deletion files/scripts/fetch-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tar -xzf /tmp/starship.tar.gz -C /tmp
install -c -m 0755 /tmp/starship /usr/bin
# shellcheck disable=SC2016
echo 'eval "$(starship init bash)"' >> /etc/bashrc
echo 'eval "$(starship init bash)"' >> /etc/zshrc
echo 'eval "$(starship init zsh)"' >> /etc/zshrc

# Topgrade Install
pip install --prefix=/usr topgrade
Expand Down
10 changes: 9 additions & 1 deletion recipes/bazzite-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ modules:

- type: files
files:
- ../bluefin/system_files/shared: /
- ../bluefin/system_files/shared/usr/bin: /usr/bin
- ../bluefin/system_files/shared/usr/etc: /usr/etc
- ../bluefin/system_files/shared/usr/libexec: /usr/libexec
- ../bluefin/system_files/shared/usr/lib/tmpfiles.d: /usr/lib/tmpfiles.d
- ../bluefin/system_files/shared/usr/share/ublue-os/bluefin: /usr/share/ublue-os/bluefin
- ../bluefin/system_files/shared/usr/share/ublue-os/bluefin-cli: /usr/share/ublue-os/bluefin-cli
- ../bluefin/system_files/shared/usr/share/ublue-os/homebrew: /usr/share/ublue-os/homebrew
- ../bluefin/system_files/shared/usr/share/ublue-os/quadlets: /usr/share/ublue-os/quadlets
- ../bluefin/system_files/shared/usr/share/ublue-os/ublue-os.jsonc: /usr/share/ublue-os/ublue-os.jsonc
- ../bluefin/system_files/kinoite/usr/bin: /usr/bin
- ../bluefin/system_files/kinoite/usr/etc/flatpak: /usr/etc/flatpak
- ../bluefin/system_files/kinoite/usr/etc/profile.d/ksshaskpass.sh: /usr/etc/profile.d
Expand Down
21 changes: 15 additions & 6 deletions recipes/bazzite-gnome-dx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,17 @@ modules:

- type: files
files:
- ../bluefin/system_files/shared: /
- ../bluefin/system_files/silverblue/usr/bin: /usr/bin
- ../bluefin/system_files/shared/usr/bin: /usr/bin
- ../bluefin/system_files/shared/usr/etc: /usr/etc
- ../bluefin/system_files/shared/usr/libexec: /usr/libexec
- ../bluefin/system_files/shared/usr/lib/tmpfiles.d: /usr/lib/tmpfiles.d
- ../bluefin/system_files/shared/usr/share/ublue-os/bluefin: /usr/share/ublue-os/bluefin
- ../bluefin/system_files/shared/usr/share/ublue-os/bluefin-cli: /usr/share/ublue-os/bluefin-cli
- ../bluefin/system_files/shared/usr/share/ublue-os/homebrew: /usr/share/ublue-os/homebrew
- ../bluefin/system_files/shared/usr/share/ublue-os/quadlets: /usr/share/ublue-os/quadlets
- ../bluefin/system_files/shared/usr/share/ublue-os/ublue-os.jsonc: /usr/share/ublue-os/ublue-os.jsonc
- ../bluefin/system_files/silverblue/usr/etc/flatpak: /usr/etc/flatpak
- ../bluefin/system_files/silverblue/usr/etc/profile.d: /usr/etc/profile.d
- ../bluefin/system_files/silverblue/usr/share: /usr/share
# - ../bluefin/system_files/silverblue/usr/share: /usr/share # Avoid Bluefin branding
- ../bluefin/system_files/dx: /
- shared: /

Expand All @@ -46,8 +52,6 @@ modules:
- gnome-shell-extension-caffeine
- gnome-shell-extension-dash-to-dock
- gnome-shell-extension-gsconnect
# - gnome-shell-extension-logo-menu # Already in Bazzite
# - gnome-shell-extension-search-light # Canìt find repo for it
- libgda-sqlite
- libgda
- libratbag-ratbagd
Expand All @@ -61,6 +65,11 @@ modules:
- gnome-tour
- gnome-terminal-nautilus

- type: gnome-extensions
install:
- Logo Menu
- Search Light

# Install Starhip and activate RPM Fusion repos
- type: script
snippets:
Expand Down

0 comments on commit e684d56

Please sign in to comment.