Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 
Posted
Updated 15-Nov-17 20:06pm
v4
Comments
Richard MacCutchan 11-Nov-17 8:56am    
Without more information it is impossible to guess. Why are you running this in the background? And if you want a program to start after boot, you need to put it in a fixed location, not your home directory.
Member 13376650 18-Nov-17 5:17am    
Hi Rechard, I edited my question.May you help me
Richard MacCutchan 18-Nov-17 5:30am    
We still do not know anything about your program or what it is supposed to do.
Member 13376650 18-Nov-17 5:19am    
May you help me?
Member 13376650 16-Nov-17 1:58am    
Hello Richard, sorry if I am too late, I was challenging with other problem. What kind of information should I put? where should I put my program as a fixed location?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900