Closing window manager from program

0

I'm currently developing a program in mono/C# which will run on a Linux embedded platform with a touch-screen.

I've installed OpenBox in top of Raspbian, because this will run in "kiosk mode" and I'm trying to keep it as simple as possible.

I was planning to have two options in the program: - option to shutdown the computer - option to close the windows manager (openbox) and return to the terminal

For the first option I've tried using:

shutdown
poweroff
systcl poweroff

commands but all require special privileges, so I'm not sure on what would be the best approach. Should I create a bash script with root privileges and run this script from the program?

For the second option, I don't even know how to start. I've configured openbox to be able to close it from the keyboard through Ctrl + Alt + Backspace.

Could you please give any advice?

Carles

Posted 2019-10-22T10:10:17.917

Reputation: 1

No answers