Comment 2 for bug 1330154

Revision history for this message
Arghya Basak (sendarghyamail) wrote : Re: [Bug 1330154] Re: sudo not working in ubuntu

Working fine! But I wonder how in some machines(with the same ubuntu 14.04
LTS) just the 'sudo gedit ' command works ok.
Anyway, thanks a lot. :)

ARGHYA BASAK
Roll No. - ME13M006
M.Tech, Mechanical Engineering Department
IIT Madras

On Tue, Jun 17, 2014 at 6:49 PM, Filip Sohajek <email address hidden>
wrote:

> It's not a bug. SuperUser has no XDG_RUNTIME_DIR variable set. To fix it,
> replace sudo gedit call with
> pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
>
>
> ** Changed in: pam-xdg-support (Ubuntu)
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1330154
>
> Title:
> sudo not working in ubuntu
>
> Status in “pam-xdg-support” package in Ubuntu:
> Invalid
>
> Bug description:
> when I try sudo gedit the command does not work.
> following is a sample output in terminal
>
> arghya@arg-u2:~$ sudo gedit /etc/hosts
> [sudo] password for arghya:
> error: XDG_RUNTIME_DIR not set in the environment.
>
> (gedit:11805): Gtk-WARNING **: cannot open display:
> arghya@arg-u2:~$
>
> pardon me for being a linux newbie.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/pam-xdg-support/+bug/1330154/+subscriptions
>