docs: Add 2, update 5 and remove 1 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 45s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 45s
This commit is contained in:
@@ -57,10 +57,10 @@ else
|
||||
fi
|
||||
|
||||
# Check if Chromium is installed
|
||||
if command -v chromium-browser >/dev/null 2>&1 || command -v chromium >/dev/null 2>&1; then
|
||||
echo "✓ Chromium browser installed"
|
||||
if command -v chromium-browser >/dev/null 2>&1 || command -v chromium >/dev/null 2>&1 || command -v google-chrome >/dev/null 2>&1; then
|
||||
echo "✓ Chromium/Chrome browser installed"
|
||||
else
|
||||
echo "✗ Chromium browser not installed"
|
||||
echo "✗ Chromium/Chrome browser not installed"
|
||||
fi
|
||||
|
||||
# Check if X server is installed
|
||||
@@ -70,22 +70,22 @@ else
|
||||
echo "✗ X server not installed"
|
||||
fi
|
||||
|
||||
# Check for running Chromium process
|
||||
# Check for running browser process
|
||||
echo ""
|
||||
echo "Kiosk Process Status:"
|
||||
echo "--------------------"
|
||||
if pgrep -f "chromium.*--kiosk" >/dev/null 2>&1; then
|
||||
echo "✓ Chromium kiosk is running"
|
||||
CHROMIUM_PID=$(pgrep -f "chromium.*--kiosk" | head -1)
|
||||
echo " PID: ${CHROMIUM_PID}"
|
||||
if pgrep -f "chromium.*--kiosk\|chrome.*--kiosk" >/dev/null 2>&1; then
|
||||
echo "✓ Browser kiosk is running"
|
||||
BROWSER_PID=$(pgrep -f "chromium.*--kiosk\|chrome.*--kiosk" | head -1)
|
||||
echo " PID: ${BROWSER_PID}"
|
||||
|
||||
# Try to get the URL being displayed
|
||||
if [ -n "$CHROMIUM_PID" ]; then
|
||||
CMDLINE=$(ps -p ${CHROMIUM_PID} -o args= 2>/dev/null | grep -oE 'https?://[^ ]+' | head -1)
|
||||
if [ -n "$BROWSER_PID" ]; then
|
||||
CMDLINE=$(ps -p ${BROWSER_PID} -o args= 2>/dev/null | grep -oE 'https?://[^ ]+' | head -1)
|
||||
[ -n "$CMDLINE" ] && echo " URL: ${CMDLINE}"
|
||||
fi
|
||||
else
|
||||
echo "✗ Chromium kiosk is not running"
|
||||
echo "✗ Browser kiosk is not running"
|
||||
echo " This is normal if the system hasn't been rebooted after installation"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user