Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deck): Disable animation replacement for plugins. #2099

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions system_files/desktop/shared/usr/bin/bazzite-steam
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
DECK_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend.webm"
OLED_STARTUP="/usr/share/ublue-os/bazzite/bazzite-oled.webm"
OLED_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend-oled.webm"
SKIP_VIDEOS=false

# Check for Galileo model
if [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then
Expand All @@ -32,7 +33,17 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
# Install Bazzite's Steam Game Mode Startup & Suspend Videos
mkdir -p $HOME/.local/share/Steam/config/uioverrides/movies

if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo ]; then
# Check for the no video flag
if [ -f $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo ]; then
SKIP_VIDEOS=true
fi

# Check for the Animation Changer plugin, if it exists then they probably don't want us.
if [ -f $HOME/homebrew/plugins/SDH-AnimationChanger/main.py ]; then
SKIP_VIDEOS=true
fi

if ! $SKIP_VIDEOS; then

LOCATION_STARTUP=$HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
LOCATION_SUSPEND=$HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend.webm
Expand All @@ -47,15 +58,15 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
if ! cmp --silent $VIDEO_SUSPEND $LOCATION_SUSPEND; then
cp $VIDEO_SUSPEND $LOCATION_SUSPEND
fi

if ! cmp --silent $VIDEO_SUSPEND $LOCATION_SUSPEND_OLD; then
cp $VIDEO_SUSPEND $LOCATION_SUSPEND_OLD
fi

if ! cmp --silent $VIDEO_SUSPEND $LOCATION_THROBBER; then
cp $VIDEO_SUSPEND $LOCATION_THROBBER
fi

if ! cmp --silent $VIDEO_SUSPEND $LOCATION_THROBBER_OLD; then
cp $VIDEO_SUSPEND $LOCATION_THROBBER_OLD
fi
Expand Down