Gedit problem

I’m running 12.1 gnome.
When from the terminal try to run gedit as root, i get a " (gedit:6547): WARNING **: Could not connect to session bus "
The problem occurs only when i am root. As a user gedit starts normally.

Thank you.

If you want to run gedit as root, do not open a terminal session but while in the gnome desktop do the following:

Alt-F2: gnomesu gedit [filename] <enter>

The Alt-F2 opens up a window, you type in **gnomesu gedit **and you can include the name of a file to edit as root if you wish and then press the enter key.

Thank You,

Done!!!

I appreciate your fast response.
Thank you.

Very happy to be of help to you.

Thank You,

On 2012-01-12 23:56, openbillys wrote:
>
> I’m running 12.1 gnome.
> When from the terminal try to run gedit as root,

How exactly?
Copy paste the terminal session here, between code tags (advanced editor,
‘#’ button), from before being root, to the output of the call to gedit and
the error.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

 **new:/home/Billys/Επιφάνεια εργασίας #** gedit

** (gedit:5033): WARNING **: Could not connect to session bus
 

On 2012-01-13 09:56, openbillys wrote:
>
> robin_listas;2429752 Wrote:
>> On 2012-01-12 23:56, openbillys wrote:
>>>
>>> I’m running 12.1 gnome.
>>> When from the terminal try to run gedit as root,
>>
>> How exactly?
>> Copy paste the terminal session here, between code tags (advanced
>> editor,
>> ‘#’ button), from before being root, to the output of the call to gedit
>> and the error.

> Code:
> --------------------
> new:/home/Billys/Επιφάνεια εργασίας # gedit
>
> ** (gedit:5033): WARNING **: Could not connect to session bus
>
> --------------------

It does not show how you got yourself root, which I asked for. Still, I’m
guessing you used “su”. Don’t. Use “su -”. Se man su for the reason. Or
search the archive of this forum.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

I’m sorry for the confusion. I was using

 su

at all the previous versions in the terminal and had no problem.

Thank you for your notice.

On 2012-01-13 12:06, openbillys wrote:
>
> I’m sorry for the confusion. I was using
> Code:
> --------------------
> su
> --------------------
> at all the previous versions in the terminal and had no problem.

“Su” and “su -” are different. Get yourself accustomed to type that dash
always, except when you need not to (and you know why). As if the default
were to use the dash.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)