Skip to content

Commit

Permalink
fix: Move flathub setup into ublue-user-flatpak-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Oct 1, 2023
1 parent 9d6371a commit bd77800
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 6 additions & 0 deletions usr/bin/ublue-user-flatpak-manager
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
exit 0
fi

# Setup Flathub
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete --user fedora --force
fi
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo

# Lists of flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
INSTALL_LIST=$(cat /etc/flatpak/user/install)
Expand Down
6 changes: 0 additions & 6 deletions usr/bin/ublue-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO)
# Enable NTP
timedatectl set-ntp true

# Setup Flathub
if grep -qz 'fedora' <<< $(flatpak remotes); then
flatpak remote-delete --user fedora --force
fi
flatpak remote-add --if-not-exists --user flathub /etc/flatpak/remotes.d/flathub.flatpakrepo

# Prevent future executions
echo "Writing state file"
echo $USER_SETUP_VER > $USER_SETUP_VER_FILE
2 changes: 1 addition & 1 deletion usr/lib/systemd/user/ublue-user-flatpak-manager.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Manage user flatpaks
Documentation=https://github.com/ublue-os/endlish-oesque/issues/10
Wants=network-online.target
After=network-online.target ublue-user-setup.service
After=network-online.target

[Service]
Type=oneshot
Expand Down

0 comments on commit bd77800

Please sign in to comment.