Ask Your Question
1

Unable to open Nautilus from terminal.

asked 2017-01-26 20:36:03 -0500

newguy gravatar image

No protocol specified Unable to init server: Could not connect: Connection refused

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

I tried the solution mentioned in a similar question on askFedora about killing all Nautilus related processes. It didn't work

edit retag flag offensive close merge delete

Comments

1

Are you trying to start Nautilus with sudo privileges? That does not work under Wayland, see here.

Period22 gravatar imagePeriod22 ( 2017-01-27 01:51:40 -0500 )edit

3 Answers

Sort by » oldest newest most voted
4

answered 2017-01-27 02:09:57 -0500

marnier gravatar image

Please also see Comment 4 here:

https://bugzilla.redhat.com/show_bug.cgi?id=1266771

As said, it is that under Wayland, X11 clients run as another user (via su or sudo) are not authorised to connect to the X11 display server.

The bug relates to GParted, but you can try running proposed solution n°2, it works for Nautilus as well.

edit flag offensive delete link more

Comments

Thanks!!! I typed "xhost +local:" as mentioned, in the terminal and it worked!

newguy gravatar imagenewguy ( 2017-01-27 10:17:42 -0500 )edit
0

answered 2017-01-27 09:27:07 -0500

florian gravatar image

The more permanent and correct solution to your problem (running nautilus as su or sudo in order to modify root-owned files) is the implementation of a protocol (called admin://) that let's you access root-owned files. Then, Nautilus UI is run as regular user, and the protocol requests the needed permissions using PolKit

https://bugzilla.gnome.org/show_bug.c...

Looks like this update will reach users with nautilus 3.24 ... in the meantime and until many other application get re-written, use work-arounds, or just XServer and not wayland

edit flag offensive delete link more

Comments

oh noes, the above solution wasn't a permanent one.

i'm new to linux system. can you please dumb down what you've written as steps? pretty pls!

newguy gravatar imagenewguy ( 2017-01-28 08:37:35 -0500 )edit
0

answered 2017-01-26 22:57:47 -0500

masteroman gravatar image

Are you able to launch it normally via desktop launcher? I assume not since you've tried opening it from the terminal.

Anyhow can you try reinstalling nautilus to see if that will help in resolving the issue?

sudo dnf reinstall nautilus
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-26 20:36:03 -0500

Seen: 5,854 times

Last updated: Jan 27 '17