Skip to content

Commit

Permalink
v3.02.5 (Bug Fix Release)
Browse files Browse the repository at this point in the history
-BUG FIX for auto installer (sorry!)

-BUG FIX for auto startup (sorry again!)
  • Loading branch information
taoteh1221 committed May 9, 2021
1 parent 5de7c25 commit aa84148
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 2 deletions.
2 changes: 2 additions & 0 deletions DOCUMENTATION-ETC/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ v3.02.5

-BUG FIX for auto installer (sorry!)

-BUG FIX for auto startup (sorry again!)

---------------------------------------------------------


Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ After=graphical.target
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/YOUR_USER_NAME/.Xauthority
Type=simple
ExecStart=/bin/bash /home/YOUR_USER_NAME/slideshow-crypto-ticker/bash/ticker-start.bash
ExecStart=/bin/bash /home/YOUR_USER_NAME/slideshow-crypto-ticker/bash/ticker-auto-start.bash
Restart=on-abort
User=YOUR_USER_NAME
Group=YOUR_USER_NAME
Expand Down
3 changes: 2 additions & 1 deletion TICKER-INSTALL.bash
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ After=graphical.target
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/$APP_USER/.Xauthority
Type=simple
ExecStart=$BASH_PATH /home/$APP_USER/slideshow-crypto-ticker/bash/ticker-start.bash
ExecStart=$BASH_PATH /home/$APP_USER/slideshow-crypto-ticker/bash/ticker-auto-start.bash
Restart=on-abort
User=$APP_USER
Group=$APP_USER
Expand Down Expand Up @@ -666,6 +666,7 @@ echo " "
echo "To stop Slideshow Crypto Ticker:"
echo " "
echo "~/ticker-stop"
echo " "


fi
Expand Down
60 changes: 60 additions & 0 deletions bash/ticker-auto-start.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash

# Copyright 2019-2021 GPLv3, Slideshow Crypto Ticker by Mike Kilday: http://DragonFrugal.com


# EXPLICITLY set paths
#PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:$PATH


# Get logged-in username (if sudo, this works best with logname)
TERMINAL_USERNAME=$(logname)


export DISPLAY=:0


###################################


# Start in user home directory
cd /home/$TERMINAL_USERNAME

xset s off

xset -dpms

xset s noblank

unclutter -idle 0.5 -root &


# Cache updating (MAKE SURE IT EXISTS BEFORE RUNNING THE TICKER)
~/slideshow-crypto-ticker/bash/cron/cache.bash


# Remove crash notices (for UX)
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences


sleep 2


# Chromium's FULL PATH
CHROMIUM_PATH=$(which chromium)

# If 'chromium' wasn't found, look for 'chromium-browser'
if [ -z "$CHROMIUM_PATH" ]
then
CHROMIUM_PATH=$(which chromium-browser)
fi


# Incognito mode doesn't prompt to restore previous session, yay
# We also set it to not check for upgrades for 7 days (SETTING TO ZERO DOES NOT WORK),
# to avoid the upgrade prompt popup on non-touch screens (for UX)
$CHROMIUM_PATH --check-for-update-interval=604800 --noerrdialogs --disable-infobars --incognito --kiosk ~/slideshow-crypto-ticker/index.html



0 comments on commit aa84148

Please sign in to comment.