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.
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.