12 lines
450 B
Bash
12 lines
450 B
Bash
#!/bin/bash
|
|
# Small floating "Open Chrome" button (desktop icons are hidden in Kasm single-app mode).
|
|
# Runs in a loop: show button, on click launch Chrome and show again.
|
|
export DISPLAY="${DISPLAY:-:1}"
|
|
sleep 5
|
|
while true; do
|
|
yad --title="Chrome" --button="Open Chrome:0" --width=180 --height=80 \
|
|
--skip-taskbar --center --text="<big>Open Chrome</big>" 2>/dev/null || exit 0
|
|
[ $? -eq 0 ] && /dockerstartup/launch_chrome.sh &
|
|
sleep 1
|
|
done
|