change autostart script
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 3m29s
Build Slideshow App / build (amd64, , linux) (push) Successful in 3m46s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 2m0s
Build Slideshow App / build (arm64, , linux) (push) Successful in 1m59s
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 3m29s
Build Slideshow App / build (amd64, , linux) (push) Successful in 3m46s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 2m0s
Build Slideshow App / build (arm64, , linux) (push) Successful in 1m59s
This commit is contained in:
@@ -119,8 +119,16 @@ jobs:
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Slideshow App
|
Name=Slideshow App
|
||||||
Exec=/usr/bin/$PKG_NAME
|
Exec=sh -c ' \
|
||||||
WorkingDirectory=/usr/share/$PKG_NAME
|
i=0; \
|
||||||
|
while [ $i -lt 30 ]; do \
|
||||||
|
if [ "$(ls -A "/media/$REAL_USER" 2>/dev/null)" ] && ping -c 1 -W 1 8.8.8.8 >/dev/null 2>&1; then \
|
||||||
|
break; \
|
||||||
|
fi; \
|
||||||
|
i=$((i+1)); \
|
||||||
|
sleep 1; \
|
||||||
|
done; \
|
||||||
|
cd /usr/share/slideshowapp && /usr/bin/slideshowapp'
|
||||||
Terminal=false
|
Terminal=false
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user