Hi,
I’m programming a GUI with processing using the nice G4P library and running in a Raspberry Pi with the lastest Raspbian stretch lite.
I’ve installed X and openbox.
When raspbian starts the cron runs this script:
#!/bin/bash
startx &
export display=:0
/home/pi/processingAppExported/processingAppExported
chvt 1
I run my processing aplication (that I’ve exportes previosly) in fullscreen, like a “kiosk mode”, when system starts, and runs pretty well, but I’ve 3 buttons that freeze the system.
The first it’s to update the app. If it doesn’t find a file (updater.sh) let the user know with a G4P call to a system dialog. The second it’s to shutdown the system and the third it’s for restart. I show you an example.
if (G4P.selectOption(this, "Do you really want to turn off the system?", "Turn off?", G4P.QUERY, G4P.YES_NO) == G4P.YES) {
System.exit(0);
}
As I’ve said before, the system freezes when I touch these buttons…
When I’m programming and testing in my desktop PC with Windows 10 all run well and I can see the system dialogs so I think that it’s not a G4P issue and may be my question would be better for a linux forum, but may be here there someone who can help me.
Best regards
jcduino