LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-08-2010, 06:37 AM   #1
Mr. Alex
Member
 
Registered: May 2010
Distribution: Arch
Posts: 859

Rep: Reputation: Disabled
Question Gedit uses something that works bad in root...


What is it gedit uses additional that causes so many problems in root account? When run
Code:
# gedit /some/file
it either doesn't open file at all or opens it with lots of errors...
 
Old 10-08-2010, 06:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,853

Rep: Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121Reputation: 1121
you fancy telling us what these errors are?? most likely it's X server display issues as I hope you're not running X as root. if so, "xhost +localhost" will allow roots X apps to display on your normal X server. This is nothing whatsoever to do with gedit though.
 
Old 10-08-2010, 06:41 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 13.37 // Desktop: Slackware64 13.37 // Netbook: Slackware 13.37
Posts: 5,478
Blog Entries: 48

Rep: Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641Reputation: 641
Try, as normal user:
Code:
gksu gedit /some/file
 
Old 10-09-2010, 01:59 PM   #4
Mr. Alex
Member
 
Registered: May 2010
Distribution: Arch
Posts: 859

Original Poster
Rep: Reputation: Disabled
The error is:
Code:
# gedit /etc/inittab 

(gedit:3940): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

**
GLib-GIO:ERROR:gdbusconnection.c:2270:initable_init: assertion failed: (connection->initialization_error == NULL)
Quote:
Try, as normal user:
Code:

gksu gedit /some/file
It works but I wonder why it doesn't in root...
 
  


Reply

Tags
gedit


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 12:20 AM
Can't launch gedit as root in Fedora 11 karuna-bdc Linux - Newbie 9 07-05-2009 11:09 PM
Fedora 9 gedit fails if launched as root from terminal itstootuff Linux - Software 5 10-28-2008 12:56 PM
cannot run gedit as root allasso Linux - Software 9 12-28-2007 06:32 PM
gui for nautilus,gedit....etc not working in root mode me4linux Linux - Software 3 08-09-2007 12:33 PM


All times are GMT -5. The time now is 01:15 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration