summaryrefslogtreecommitdiffstats
path: root/core/modules/kiosk-chromium
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-22 13:21:05 +0200
committerSimon Rettberg2021-07-22 13:21:05 +0200
commitb554009ab7d2e161e35ffa002a65312a86ff7dfc (patch)
tree4584daa3acc2d3d36e6fec1ea8130367f5365887 /core/modules/kiosk-chromium
parent[dnbd3-proxy-mode/disk-partitions] Add persistent.target (diff)
downloadmltk-b554009ab7d2e161e35ffa002a65312a86ff7dfc.tar.gz
mltk-b554009ab7d2e161e35ffa002a65312a86ff7dfc.tar.xz
mltk-b554009ab7d2e161e35ffa002a65312a86ff7dfc.zip
[kiosk-chromium] Simplify the awk
Diffstat (limited to 'core/modules/kiosk-chromium')
-rw-r--r--core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium
index bb4204e0..d94b30df 100644
--- a/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium
+++ b/core/modules/kiosk-chromium/data/opt/openslx/scripts/kiosk-launch.d/00-chromium
@@ -88,7 +88,7 @@ if [ -n "$SLX_BROWSER_RELOAD_SECS" ] && [ "$SLX_BROWSER_RELOAD_SECS" -gt 0 ]; th
readonly wid
fi
if [ -z "$wpid" ]; then
- wpid="$(xprop -id "$wid" | awk -F= '$1 ~ /_NET_WM_PID\(CARDINAL\)/ {print $2}' | tr -d ' ')"
+ wpid="$( xprop -id "$wid" | awk '$1 == "_NET_WM_PID(CARDINAL)" {print $3}' )"
if [ -z "$wpid" ]; then
# logs to ~/.xsession-errors
echo "Failed to get the pid of chromium-browser via xprop..."