Im a programm with no to little knowledge about Linux. Basicaly, we have a "linux man" here, but he is out of town for some days and thus, Im stuck with my own work.
This time I just have to programm a simple gui, that calls/starts a couple of scripts, who do all the work.
Now, when I write
in the console (/bin/bash). It works (its a simple picture viewer, openSUSE 12.2).
But when I run a script that looks like this:
I get the following error:
No protocol specified
Error, cant open display
When I issue the command
in the console, the script works. However, the app isnt started from a console and do not open a console, so this is not a solution. I changed the script to
But get the error: xhost: unable to open display ":0.0"
Of course, the script dont work when started by my app (however, when my app just executes eog, it works). The question is, what can I do?
PS: found a lot of answers to the "no protocol specified" and "unable to open display" problem on the net, however not one helped me.