You are not logged in.

#1 2016-12-27 23:28:17

HeikeOnFire
Member
Registered: 2016-12-24
Posts: 43

[Solved] Can't open GUIs with sudo

Hello.

I can't open GUIs with sudo. Everytime I try the following message appears:

[test@test ~]$ sudo gedit /etc/default/grub 
No protocol specified
Unable to init server: Verbindung ist gescheitert:Verbindungsaufbau abgelehnt

(gedit:2363): Gtk-WARNING **: cannot open display: :0
[testi@test ~]$ sudo nautilus .
No protocol specified
Unable to init server: Verbindung ist gescheitert:Verbindungsaufbau abgelehnt

(nautilus:2485): Gtk-WARNING **: cannot open display: :0

Console applications are working with sudo. At least nano and a few other I tested.

Last edited by HeikeOnFire (2016-12-27 23:54:34)

Offline

#2 2016-12-27 23:32:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [Solved] Can't open GUIs with sudo

Right. This is normal, expected, and covered in the wiki.

Offline

#3 2016-12-27 23:38:00

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Can't open GUIs with sudo


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-12-27 23:40:47

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved] Can't open GUIs with sudo

No reason to run gedit as root:

EDITOR=gedit sudoedit /etc/default/grub 

Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2016-12-27 23:54:16

HeikeOnFire
Member
Registered: 2016-12-24
Posts: 43

Re: [Solved] Can't open GUIs with sudo

This is weird. But OK.

Offline

Board footer

Powered by FluxBB