Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Create a process with fork and launch a gui process , getting error No protocol specified

$
0
0
I have a service which invoke a process say cust, In cust i did fork and exec to run firefox or any gui application. I am using path for firefox /usr/bin/X11/firefox.
When i run my application and invoke fork to run firefox, i am getting below errors. 1.No protocol specified 2.Error: cannot open display: :0.0
With different forum readings i found that X11 environment is not set. I tried to set environmental variables in service,process but nothing is help me.
i tried to set XAUTHORITY=$HOME/.Xauthority and DISPLAY=:0.0 variables.
I am using OpenSuSE 12.3 with GNOME.
Service and application cust running as a root user.

Please help to solve this issue.
Thanks in advance.

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>