I have Ubuntu-server 16.04. Installed gtk3 and can execute my program manually by this command: ./img when I go to it's directory /home/m:
[
^]
But when I try to execute my program from outside the /home/m folder by this command:
/home/m/img &
It only shows an icon inside a little window in bottom right of the screen.
Why it happens and how can I fix it?
[
^]
And my second question is here: I did add this line:
/home/m/img &
to my
/etc/xdg/openbox/autostart
file, and it works after login but doesn't show my image, it shows only a file icon at center of the screen. I think it's same as previous problem!
[
^]
How should I fix it?
What I have tried:
My goal is building a gadget, when user turns it on, it shows a welcome image, then waits for user's voice command, then shows another image respect to command and backs to welcome page again. there is no other menu or option for user. This is the whole system I like to build by Linux and for this reason I chose Ubuntu-server (because I don't need to desktop environment and menu and other regular apps). then I installed openbox on it. And now I am trying to find a way that my program starts at boot(like a Kiosk) and the only thing user can do is phyisically turning on/off the system by power button! Or telling some voice command when the system is on