On 09/17/2017 03:52 AM, Patrick Dupre wrote:
> 
>> From: "Ed Greshko" <ed.gres...@gmail.com>
>> To: Fedora <users@lists.fedoraproject.org>
>> Subject: Re: gnome-terminal
>>
>> On 09/17/17 17:30, Patrick Dupre wrote:
>>> When I run /usr/bin/gnome-terminal under fc26 (it was fine in fc24)
>>> from a gnome-terminal I get:
>>>
>>> Unable to init server: Could not connect: Connection refused
>>> Failed to parse arguments: Cannot open display: 
>>>
>>> Can I avoid the error ?
>>
>>
>> You never give sufficient details for anyone to be of much help.
>>
>> You don't say how your are starting it or the environment.  But you are 
>> apparently
>> starting it from a session which has no connection to a DISPLAY.
>>
>> Example....
>>
>> [egreshko@meimei ~]$ env | grep DISPLAY
>> DISPLAY=:0
>>
>> [egreshko@meimei ~]$ /usr/bin/gnome-terminal
>> [egreshko@meimei ~]$ echo $?
>> 0
>>
>> Starts just fine...
> 
> If I set DISPLAY properly
> DISPLAY=:0
> echo $?
> 0
> I get:
> Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: 
> Connection refused
> Failed to parse arguments: Cannot open display: 
> 
> echo $?

Patrick, you can't start a gnome-terminal except as the user that
started the gnome session. THAT user "owns" the X server and, unless
that user explicitly permits access to the X server (such as "xhost +"),
no one else can use it.

If you ran gnome-terminal, then did something like "su -" or "sudo bash
-l" in that terminal and subsequently ran "gnome-terminal" from there
(e.g. as a different user), then that user does NOT have a gnome-session
and can't open the X server. Simply defining the "DISPLAY" variable does
NOT tie that user to the gnome session.

In the future, please be EXPLICIT in telling us WHAT you did to arrive
at the error(s) you hit. You consistently ask for help without giving us
any idea as to what the devil you did in the first place to cause the
problem.

>> [egreshko@meimei ~]$ ssh meimei
>> Last login: Sun Sep 17 18:29:10 2017 from 192.168.1.18
>>
>> [egreshko@meimei ~]$ env | grep DISPLAY
>> [egreshko@meimei ~]$
>>
>> Nothing returned....
>>
>> [egreshko@meimei ~]$ /usr/bin/gnome-terminal
>> Unable to init server: Could not connect: Connection refused
>> Failed to parse arguments: Cannot open display:
>> [egreshko@meimei ~]$ echo $?
>> 1
>>
>> Totally expected.
>>
>> -- 
>> Fedora Users List - The place to go to speculate endlessly
>>
>> _______________________________________________
>> users mailing list -- users@lists.fedoraproject.org
>> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>>
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 


-- 
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ri...@alldigital.com -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-           grep me no patterns and I'll tell you no lines           -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to