LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-09-2009, 06:09 AM   #1
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Rep: Reputation: 15
Kate and Kwrite crash in Mandriva 2010 KDE4


I installed Mandriva 2010 yesterday and overal I find it impressive and easy to use.

However, I am unable to get either KATE or KWRITE to run when in ROOT. I have no problems when using them as a USER.

Has anyone else experienced this problem and possibily has a work around or for that matter knows of text editor which does not crash under KDE4?

Thanks in advance,

Tony Littlejohn
 
Old 11-09-2009, 06:30 AM   #2
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Original Poster
Rep: Reputation: 15
Terminal out put when trying to run Kate and Kwrite as ROOT

Dear All,
I for got to include the following info when trying to run KWRITE as ROOT. I get this

[root@localhost tony]# kwrite
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
kdeinit4: Communication error with launcher. Exiting!
KCrash: Application 'kwrite' crashing...
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
Warning: connect() failed: : Connection refused
KCrash cannot reach kdeinit, launching directly.

[1]+ Stopped kwrite

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And for KATE I get this.

root@localhost tony]# kate
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
kdeinit4: Communication error with launcher. Exiting!
KCrash: Application 'kate' crashing...
sock_file=/root/.kde4/socket-localhost/kdeinit4__0
Warning: connect() failed: : Connection refused
KCrash cannot reach kdeinit, launching directly.

[1]+ Stopped kate

Thanks again
 
Old 11-09-2009, 08:56 AM   #3
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
Did you use "su -" to become root? It's necessary on KDE4 to run GUI apps.

Jim

Last edited by jkerr82508; 11-09-2009 at 08:57 AM.
 
Old 11-10-2009, 01:19 AM   #4
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Original Poster
Rep: Reputation: 15
I entered root via "su" at the terminal for both Kate and Kwrite and in each case the programme crashed (Signal 11).

In desperation I installed Gedit yesterday and it ran from root. So. fo the moment I do not have a KDE4 test editor to run as root, just a Gnome one.

Strange, to say the least.

Thanks for your interest,

Tony
 
Old 11-10-2009, 03:21 AM   #5
jkerr82508
Member
 
Registered: Dec 2006
Location: Fife, Scotland
Posts: 268

Rep: Reputation: 69
To run KDE4 apps as root you must become root by entering "su -". The space and the dash after su are essential.

Jim
 
Old 11-11-2009, 09:47 PM   #6
greythorne
Member
 
Registered: Apr 2004
Posts: 363

Rep: Reputation: 30
Quote:
Originally Posted by jkerr82508 View Post
To run KDE4 apps as root you must become root by entering "su -". The space and the dash after su are essential.

Jim
Hey thanks that did the trick.

I have the same issue as the thread starter but care to explain why we need the dash after "su", basically what the dash does in executing the su command?

Thanks and regards.
 
Old 11-11-2009, 09:51 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"su" gives you root's powers

"su -" gives you also root's environment--eg the $PATH variable---with "su -" you ARE root.
 
Old 11-12-2009, 04:45 PM   #8
Tony Littlejohn
Member
 
Registered: Dec 2007
Location: In the Nievre, Burgandy France
Distribution: Mandriva 2008.0
Posts: 63

Original Poster
Rep: Reputation: 15
Jim,
Many thanks for your advice re: "su -". I was unaware that there were "su" and "su -". I learn something each and every day.

Tony
 
Old 06-29-2010, 05:05 AM   #9
hugotheschmugo
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
"su" gives you root's powers

"su -" gives you also root's environment--eg the $PATH variable---with "su -" you ARE root.
Thank you so much for this explanation. Sweet!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find MD5SUM for Mandriva 2010 KDE4 586 Tony Littlejohn Mandriva 4 11-06-2009 01:14 AM
strange highlighting problem in Kate and KWrite steineswz Linux - Software 1 01-25-2007 03:31 PM
Plugins for KDE- Kwrite Kate etc saurya_s Linux - Software 0 04-19-2004 03:50 PM
install kwrite/kate without kde wm? matthewchng Linux - Software 2 02-25-2004 03:34 PM
Kate/KWrite sourcecode editing with folding alex.e.c Linux - Software 0 09-10-2003 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration