Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Dear Emmanuele, Sorry sir... NO NO NO. A Big NO. I have already spent four years for developing the application I am working. If I have to adopt that approach, I have to spend another one year which I can't afford Any ways, xhost +si:localuser:root solved my problem. Thanks & Regards -- Lokesh

Re: No protocol specified error

2017-11-04 Thread Emmanuele Bassi
On 4 November 2017 at 06:08, Lokesh Chakka wrote: > Dear Felipe, > > I have refereed the link. As the application I am writing needs root > privileges, I must use sudo ./a.out. No other option. Of *course* there are other options for you: this is software development, not surgery. The appropriat

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
okay... after some more search I found here xhost si:localuser:root is doing the job. But is there a way to achieve this programatically in C language ? Thanks & Regards -- Lokesh Chakka, Mobile: 9731023458 On Sat, Nov 4, 2017 at 2:53 PM, Lokesh

Re: No protocol specified error

2017-11-04 Thread Lokesh Chakka
Hello, To add, I found gksudo might be helpful. I found issue mentioned here: https://bugs.launchpad.net/ubuntu/+source/ubuntu-themes/+bug/1723422 and work around https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1724078/comments/4 after that, I found the following issue: https://ubun

Re: No protocol specified error

2017-11-03 Thread Lokesh Chakka
Dear Felipe, I have refereed the link. As the application I am writing needs root privileges, I must use sudo ./a.out. No other option. Dear Bruggemann, I have gone through zenmap as suggested by you. But it is not going to work as zenmap itself is failing to launch. ===

Re: No protocol specified error

2017-10-22 Thread Felipe Borges
whatever man On Sat, Oct 21, 2017 at 2:25 AM, David Margerison wrote: > On 20 October 2017 at 22:33, Felipe Borges wrote: >> >> Running GUI applications as root is hardly discouraged. > > The English language can be surprising, so I write this short note to help > avoid confusion. > > 400 years

Re: No protocol specified error

2017-10-21 Thread David Margerison
On 20 October 2017 at 22:33, Felipe Borges wrote: > > Running GUI applications as root is hardly discouraged. The English language can be surprising, so I write this short note to help avoid confusion. 400 years ago, your sentence above would be correct. But the meaning of the word "hardly" has

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
On Fri, Oct 20, 2017 at 1:18 PM, Lokesh Chakka wrote: > Dear Felipe, > > Thanks for the information. > Is it possible to login with my credentials and execute as sudo ./a.out. > > Can u help me how to make it work ? Running GUI applications as root is hardly discouraged. What you should be going

Re: No protocol specified error

2017-10-20 Thread Lokesh Chakka
Dear Felipe, Thanks for the information. Is it possible to login with my credentials and execute as sudo ./a.out. Can u help me how to make it work ? Thanks & Regards -- Lokesh Chakka, Mobile: 9731023458 On Fri, Oct 20, 2017 at 4:43 PM, Felipe Borges wrote: > On Fri, Oct 20, 2017 at 1:01 P

Re: No protocol specified error

2017-10-20 Thread Felipe Borges
On Fri, Oct 20, 2017 at 1:01 PM, Lokesh Chakka wrote: > Hello, > > I am using simple program > > #include > > int main(int argc, char *argv[]) > { > GtkWidget *window; > gtk_init(NULL, NULL); > window = gtk_window_new(GTK_WINDOW_TOPLEVEL); > gtk_widget_show(window); > g_signal