You are not logged in.

#1 2013-04-24 12:12:43

step-2
Member
Registered: 2012-05-08
Posts: 60

[SOLVED] can't start nautilus as root !

Hi everyone ,

can't seem to get sudo nautilus nor su+nautilus working ,

here what i get with sudo nautilus :

(nautilus:958): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(nautilus:958): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-added' is invalid for instance `0x1eda000' of type `GtkMessageDialog'

(nautilus:958): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-removed' is invalid for instance `0x1eda000' of type `GtkMessageDialog'

(nautilus:958): GLib-GObject-WARNING **: invalid cast from `GtkMessageDialog' to `NautilusWindow'
**
ERROR:nautilus-window.c:1754:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))


and when su + nautilus :

Unable to initialize DBus connection: The connection is closed
(nautilus:990): GLib-GIO-CRITICAL **: g_dbus_interface_skeleton_export: assertion `G_IS_DBUS_CONNECTION (connection)' failed
Error creating proxy: The connection is closed (g-io-error-quark, 18)

(nautilus:990): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-added' is invalid for instance `0x1b72080' of type `GtkMessageDialog'

(nautilus:990): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-removed' is invalid for instance `0x1b72080' of type `GtkMessageDialog'

(nautilus:990): GLib-GObject-WARNING **: invalid cast from `GtkMessageDialog' to `NautilusWindow'
**
ERROR:nautilus-window.c:1754:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))
Aborted (core dumped)

Last edited by step-2 (2013-04-26 23:09:38)

Offline

#2 2013-04-24 12:30:45

chord
Member
Registered: 2012-11-07
Posts: 121

Re: [SOLVED] can't start nautilus as root !

GUI applications should be started with gksu, not su or sudo.

Offline

#3 2013-04-24 12:56:04

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

then it should be as dependency !

any ways , here is the output with gksu :

(nautilus:1837): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(nautilus:1837): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-added' is invalid for instance `0x290a140' of type `GtkMessageDialog'

(nautilus:1837): GLib-GObject-WARNING **: gsignal.c:2475: signal `slot-removed' is invalid for instance `0x290a140' of type `GtkMessageDialog'

(nautilus:1837): GLib-GObject-WARNING **: invalid cast from `GtkMessageDialog' to `NautilusWindow'
**
ERROR:nautilus-window.c:1754:nautilus_window_get_slots: assertion failed: (NAUTILUS_IS_WINDOW (window))

Offline

#4 2013-04-25 03:28:34

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

no solution ?

Offline

#5 2013-04-25 03:38:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,421

Re: [SOLVED] can't start nautilus as root !

step-2 wrote:

no solution ?

Frontal Lobotomies have been rare for the last 40 years. 

If you insist on running a GUI, let alone a file manager GUI, as root; use a tool such as gksu (as has been suggested).  It is not a dependency because it is a terrible idea.
Never-the-less, it is your system; do as you will.

Last edited by ewaller (2013-04-25 03:38:39)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#6 2013-04-25 05:33:15

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] can't start nautilus as root !

Its been an issue for me too in Arch linux for the past few months. since I am not near my archbox I can't test this. But this env variable always used to work.

export DISPLAY=:0.0

LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#7 2013-04-25 05:56:55

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

ewaller wrote:
step-2 wrote:

no solution ?

Frontal Lobotomies have been rare for the last 40 years. 

If you insist on running a GUI, let alone a file manager GUI, as root; use a tool such as gksu (as has been suggested).  It is not a dependency because it is a terrible idea.
Never-the-less, it is your system; do as you will.

i bit you don't know whats going on smile

Offline

#8 2013-04-25 05:58:22

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

hadrons123 wrote:

Its been an issue for me too in Arch linux for the past few months. since I am not near my archbox I can't test this. But this env variable always used to work.

export DISPLAY=:0.0

thanks,

after a couple of reboots it decided to work on it's own

Offline

#9 2013-04-25 10:38:55

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,517
Website

Re: [SOLVED] can't start nautilus as root !

step-2 wrote:

i bit you don't know whats going on smile

If you don't think someone understands what you are trying to accomplish, the failure is yours for not explaining it, not theirs for failing to understand.  I don't know if it was intended as such, but that line reads as quite insulting.  I for one would appreciate if youd clarify, revise, or just remove it.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#10 2013-04-25 13:42:54

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

Trilby wrote:
step-2 wrote:

i bit you don't know whats going on smile

If you don't think someone understands what you are trying to accomplish, the failure is yours for not explaining it, not theirs for failing to understand.  I don't know if it was intended as such, but that line reads as quite insulting.  I for one would appreciate if youd clarify, revise, or just remove it.

the problem is dead simple , i pasted the commands and the outputs i entered and received (don't think more explaining is required),
thinking someone had ran into the same problem and fixed it or know a work around at least ,

instead ewaller is giving me/us a lecture on how GUI's are for newbies and we should run every thing from a terminal ( which i could but don't prefer ) ,

if anyone need to clarify or revise his words should be him , if he doesn't know a solution (which clearly he does) then why bother with an    
arrogance comment such his , he should be silent like other 143 gentlemen viewers of the post .

there is saying in my language , roughly translated says : "Say good or Hist" .

Last edited by step-2 (2013-04-25 13:44:18)

Offline

#11 2013-04-25 15:56:38

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,421

Re: [SOLVED] can't start nautilus as root !

The problem is that root does not have a dbus session running.  Nor does he have an Xscreen in his name.  I presume you want to use those that belong to the logged in user.  That is precisely what gksu and similar tools do.

Your "No solution?" is in violation of our policy, but, rather than call you on that, I tried (and failed) humor.  I am also loath to offer advice to people that will lead to their posting in threads such as https://bbs.archlinux.org/viewtopic.php?id=153361 after  one hits the 'delete' key when their mouse is over /sbin.

As to how to convince a GUI program to  run as root so as to use a user's DBUS session without a helper such as gksu, I've not a clue.

Disclaimer:  It turns out there had been a report about this thread, and I was party to the report.  I had not seen the report when I made this post or I would have left a response to another member of the moderation team

Last edited by ewaller (2013-04-25 19:31:26)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#12 2013-04-25 16:08:37

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,059

Re: [SOLVED] can't start nautilus as root !

step-2, you are in violation of a number of forum rules.

1) Bumping threads without adding additional relevant info
2) Disrespecting the forum staff
3) How to post (especially using code tags and marking threads as solved)

I consider  1 & 3 to be minor infractions, but 2 is something we will not tolerate. You have been warned. I will not hesitate to ban you if you violate any other forum rules. If you want to familiarize with the rules again, you can do so by visiting the link in my signature.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#13 2013-04-25 16:22:18

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] can't start nautilus as root !

ewaller wrote:

As to how to convince a GUI program run as root to use a user's DBUS session without a helper such as gksu, I've not a clue.

In Debian and Fedora rawhide (fully updated) when you log into your  terminal with su - and start a GUI app it just works. It used to do in Arch too, but for the last 5-6 months or so it doesn't  work. I remember seeing even a bug report regarding this but couldn't find it now.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#14 2013-04-26 20:43:12

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

Inxsible wrote:

I will not hesitate to ban you if you violate any other forum rules. If you want to familiarize with the rules again, you can do so by visiting the link in my signature.

by all means

Offline

#15 2013-04-26 20:46:05

step-2
Member
Registered: 2012-05-08
Posts: 60

Re: [SOLVED] can't start nautilus as root !

hadrons123 wrote:
ewaller wrote:

As to how to convince a GUI program run as root to use a user's DBUS session without a helper such as gksu, I've not a clue.

In Debian and Fedora rawhide (fully updated) when you log into your  terminal with su - and start a GUI app it just works. It used to do in Arch too, but for the last 5-6 months or so it doesn't  work. I remember seeing even a bug report regarding this but couldn't find it now.

not sure , but i think polkit-gnome solved the issue

Offline

#16 2013-04-26 21:24:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,421

Re: [SOLVED] can't start nautilus as root !

step-2 wrote:

not sure , but i think polkit-gnome solved the issue

Cool!  If it is working, do not forget to edit your first post and add [SOLVED] to the beginning of the thread title.

Thanks.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#17 2013-04-27 01:21:50

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [SOLVED] can't start nautilus as root !

ewaller wrote:
step-2 wrote:

not sure , but i think polkit-gnome solved the issue

Cool!  If it is working, do not forget to edit your first post and add [SOLVED] to the beginning of the thread title.

Thanks.

I don't think he can do it. He's already nuked!

edit:
oh my bad. looks like either him or some mod has done it.

Last edited by hadrons123 (2013-04-27 01:23:09)


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#18 2013-05-02 13:46:12

moizgr
Member
Registered: 2013-03-19
Posts: 2

Re: [SOLVED] can't start nautilus as root !

solution
by add user to dbus group
gpasswd -a username dbus

Offline

#19 2013-05-02 15:18:06

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 202

Re: [SOLVED] can't start nautilus as root !

I just tried sudo Nautilus it works perfect as it has done for the last 7 years? I think you are giving step-2 ahard time.
That said this should of been posted in the beginners section


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

Board footer

Powered by FluxBB