From b30afcbd9d49c25af510fb6f7470459cfa578a5a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 4 Dec 2018 11:17:05 +0100 Subject: [beamergui] Respawn beamergui if closed --- core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'core/modules/beamergui') diff --git a/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh b/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh index e17bbbc7..5f4e2bfa 100755 --- a/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh +++ b/core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh @@ -2,4 +2,11 @@ [ "$EVENT" = "clicked" ] || exit 0 -exec beamergui -w +if ps u | grep -v grep | grep -q 'beamergui -b'; then + exec beamergui -w +fi + +( + beamergui -b -g & +) & + -- cgit v1.2.3-55-g7522