[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: No protocol specified error
From:       Lokesh Chakka <lvenkatakumarchakka () gmail ! com>
Date:       2017-11-04 11:17:56
Message-ID: CACh--sjQNg87HZVRFFoW+MVEH4c9sQ_WjGLYXeeh5WtqLOBfGw () mail ! gmail ! com
[Download RAW message or body]

okay...
after some more search I found here
<https://wiki.archlinux.org/index.php/wayland>

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 Chakka <lvenkatakumarchakka@gmail.com
> wrote:

> 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://ubuntuforums.org/showthread.php?t=1803102
>
> but now if I do "gksudo ./a.out" it is just exiting without any message or
> log. If I use "gksudo gdb ./a.out" and try to run, cursor is just blinking
> and nothing is showing up.
>
>
>
>
> Thanks & Regards
> --
> Lokesh Chakka,
> Mobile: 9731023458
>
> On Sat, Nov 4, 2017 at 11:38 AM, Lokesh Chakka <
> lvenkatakumarchakka@gmail.com> 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.
>>
>> 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.
>>
>> =============================
>> $ sudo zenmap
>> No protocol specified
>> No protocol specified
>> Traceback (most recent call last):
>>   File "/usr/bin/zenmap", line 181, in <module>
>>     import zenmapGUI.App
>>   File "/usr/lib/python2.7/dist-packages/zenmapGUI/App.py", line 157, in
>> <module>
>>     import gtk
>>   File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line
>> 69, in <module>
>>     _init()
>>   File "/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py", line
>> 57, in _init
>>     warnings.warn(str(e), _gtk.Warning)
>> gtk.GtkWarning: could not open display
>> =============================
>>
>>
>> I am absolutely stuck now. Can some one please help me how to tackle this
>> issue ?
>>
>>
>>
>>
>> Thanks & Regards
>> --
>> Lokesh Chakka,
>> Mobile: 9731023458
>>
>> On Sun, Oct 22, 2017 at 10:22 PM, Felipe Borges <felipe10borges@gmail.com
>> > wrote:
>>
>>> whatever man
>>>
>>> On Sat, Oct 21, 2017 at 2:25 AM, David Margerison
>>> <deltam@electrosonics.com.au> wrote:
>>> > On 20 October 2017 at 22:33, Felipe Borges <felipe10borges@gmail.com>
>>> 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 changed over time.
>>> >
>>> > In modern language, your sentence above means: running GUI applications
>>> > as root is discouraged only a small amount.
>>> >
>>> > (I suspect that is the opposite of what you wanted to say).
>>> >
>>> > Because these days "hardly" means "not very much".
>>> >
>>> > If a glass of water is almost empty, we can say: there is hardly any
>>> > water there.
>>> >
>>> > The word "hardly" has lost its original connection to the word "hard".
>>> >
>>> > So I would write that sentence as:
>>> >   Running GUI applications as root is severely discouraged.
>>> > or
>>> >   Running GUI applications as root is strongly discouraged.
>>> > _______________________________________________
>>> > gtk-app-devel-list mailing list
>>> > gtk-app-devel-list@gnome.org
>>> > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>> _______________________________________________
>>> gtk-app-devel-list mailing list
>>> gtk-app-devel-list@gnome.org
>>> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>>>
>>
>>
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic