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 < lvenkatakumarcha...@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 <felipe10bor...@gmail.com> > wrote: > >> whatever man >> >> On Sat, Oct 21, 2017 at 2:25 AM, David Margerison >> <del...@electrosonics.com.au> wrote: >> > On 20 October 2017 at 22:33, Felipe Borges <felipe10bor...@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