From ddbc6d6de22bc427776b363ff4ffc5650b4a23e7 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sun, 20 Oct 2019 20:19:33 +0200 Subject: [PATCH] . --- .idea/workspace.xml | 26 +++++++++++--------------- scripts/pcgames.php | 10 +++++++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ff73955..6363606 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,13 +2,8 @@ - - - - - - + diff --git a/scripts/pcgames.php b/scripts/pcgames.php index 0581549..69cf55d 100644 --- a/scripts/pcgames.php +++ b/scripts/pcgames.php @@ -3,6 +3,10 @@ require_once "import.php"; if (config('DEVICE') == 'salon') { harmonyActivity('media'); - sshCommand('killall fbi', 'salon', false,true); - sshCommand('DISPLAY=:0 remmina -c /home/pi/.local/share/remmina/1571565005433.remmina', 'salon'); -} \ No newline at end of file +} else if (config('DEVICE') == 'bureau') { + bureauMediaOn(); +} + +sshCommand('killall fbi', null, false, true); +sshCommand('killall /usr/bin/remmina', null, false, true); +sshCommand('DISPLAY=:0 /usr/bin/remmina -c /home/pi/.local/share/remmina/1571565005433.remmina', null, false, false); \ No newline at end of file -- 2.39.5