diff options
-rwxr-xr-x | core/modules/beamergui/data/opt/openslx/pvs2/showBeamergui.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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 & +) & + |