mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-26 18:35:30 +00:00
fix: Correct issue with hhd being enabled on root, add HHD adjustor package.
This commit is contained in:
parent
823934e6f6
commit
929cee487d
@ -641,6 +641,7 @@ RUN rpm-ostree install \
|
||||
galileo-mura \
|
||||
powerbuttond \
|
||||
hhd \
|
||||
adjustor \
|
||||
vpower \
|
||||
ds-inhibit \
|
||||
steam_notif_daemon \
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
systemctl enable --now hhd@$(systemd-escape "$(getent passwd $PKEXEC_UID | cut -d: -f1)").service
|
||||
systemctl enable --now hhd@$(systemd-escape $1).service
|
||||
systemctl disable --now hhd@root.service
|
||||
|
@ -4,4 +4,4 @@
|
||||
timedatectl set-ntp true
|
||||
|
||||
# Allow Tailscale Control
|
||||
tailscale set --operator="$(getent passwd $PKEXEC_UID | cut -d: -f1)"
|
||||
tailscale set --operator="$(systemd-escape $1)"
|
||||
|
@ -10,7 +10,7 @@ BAZZITE_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bazzite"
|
||||
mkdir -p "$BAZZITE_CONFIG_DIR"
|
||||
|
||||
# SCRIPT VERSION
|
||||
USER_SETUP_VER=29
|
||||
USER_SETUP_VER=30
|
||||
USER_SETUP_VER_FILE="$BAZZITE_CONFIG_DIR/version"
|
||||
USER_SETUP_FEDORA_VER_FILE="$BAZZITE_CONFIG_DIR/fedora_version"
|
||||
USER_SETUP_IMAGE_VER_FILE=$BAZZITE_CONFIG_DIR/image_name""
|
||||
@ -43,7 +43,7 @@ flatpak remote-add --if-not-exists --user flathub /usr/etc/flatpak/remotes.d/fla
|
||||
flatpak remote-modify --user --enable --prio=2 flathub
|
||||
|
||||
# Handle privileged tasks
|
||||
pkexec /usr/libexec/bazzite-privileged-user-setup
|
||||
pkexec /usr/libexec/bazzite-privileged-user-setup "$USER"
|
||||
|
||||
# Refresh fontconfig
|
||||
if [[ -f "$HOME/.config/fontconfig" ]]; then
|
||||
@ -128,7 +128,7 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegam
|
||||
# HHD Setup
|
||||
if /usr/libexec/hardware/hhd-supported-hardware; then
|
||||
echo 'Enabling HHD'
|
||||
pkexec /usr/libexec/bazzite-enable-hhd
|
||||
pkexec /usr/libexec/bazzite-enable-hhd "$USER"
|
||||
fi
|
||||
|
||||
# SDGyroDSU Setup
|
||||
|
Loading…
x
Reference in New Issue
Block a user