Raspberry Pi freezes when trying to execute a shellscript
-
wrote on 28 Jul 2017, 07:06 last edited by
I have a Rpi 3 with a Qt application when I push a button a shellscript must get executed. The script just launches the chromium browser in kiosk mode which loads the site youtube. Manually running the script works perfectly. The script and the application all have the right permissions.
I use in the pushbutton's event:
system(qPrintable("./youtube.sh"));
This works on my ubuntu PC without problems. The binary is cross-compiled for the Rpi. I do not know why the Rpi freezes. I cannot even do Ctrl Alt F1
-
I have a Rpi 3 with a Qt application when I push a button a shellscript must get executed. The script just launches the chromium browser in kiosk mode which loads the site youtube. Manually running the script works perfectly. The script and the application all have the right permissions.
I use in the pushbutton's event:
system(qPrintable("./youtube.sh"));
This works on my ubuntu PC without problems. The binary is cross-compiled for the Rpi. I do not know why the Rpi freezes. I cannot even do Ctrl Alt F1
@bask185 Does it work if you execute the script manually on your RPi?
-
wrote on 28 Jul 2017, 08:24 last edited by
yes it does, it only has one command to execute.
"DISPLAY=:0 chromium-browser -kiosk www.youtube.com"
I also tried to input this command instead of the shellscript as in:
system(qPrintable("DISPLAY=:0 chromium-browser -kiosk www.youtube.com"));
But no change, total system freeeze
-
yes it does, it only has one command to execute.
"DISPLAY=:0 chromium-browser -kiosk www.youtube.com"
I also tried to input this command instead of the shellscript as in:
system(qPrintable("DISPLAY=:0 chromium-browser -kiosk www.youtube.com"));
But no change, total system freeeze
wrote on 28 Jul 2017, 12:07 last edited byAre you sure that the default directory of you application is correct (that is, ./ points to the right place?)?
1/4