This forum has been archived. All content is frozen. Please use KDE Discuss instead.

"sudo kate errors"

Tags: None
(comma "," separated)
nestawasright
Registered Member
Posts
2
Karma
0
OS

"sudo kate errors"

Fri Aug 19, 2011 3:43 am
I've tranversed the internet looking for solutions for this.

I issue, under user name, in Konsole:

sudo kate

and I get this:

Error: "/var/tmp/kdecache-amer" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-amer" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-amer" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-amer" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-amer" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-amer" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-amer" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-amer" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-amer" is owned by uid 1000 instead of uid 0.
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/amergin/.config/ibus/bus
kate(1505)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x9c5144c deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
kate(1505)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x9da39d0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
kate(1505)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x9ca64fc deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.

And if I'm root and issue at Konsole "Kate"

The response is this:
No protocol specified
kate: cannot connect to X server :0

Thanks for your considered response in helping me sort this out.

Kate, does work under user name, but never on "su"

Cheers
User avatar
claydoh
Registered Member
Posts
1170
Karma
9
OS

Re: "sudo kate errors"

Fri Aug 19, 2011 3:58 am
try "kdesudo kate" instead of sudo.


claydoh, proud to be a member of KDE forums since 2008-Oct, and KDE user since 2001
nestawasright
Registered Member
Posts
2
Karma
0
OS

Re: "sudo kate errors"

Fri Aug 19, 2011 5:59 am
claydoh wrote:try "kdesudo kate" instead of sudo.


I did and got this:
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/amer/.config/ibus/bus
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /root/.config/ibus/bus
kate(12481)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x85f2dc4 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
kate(12481)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x87454b0 deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.
kate(12481)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x8647d6c deleted without having been removed from the factory first. This will leak standalone popupmenus and could lead to crashes.

And when I tried it with "su", got this:
No protocol specified
kdesudo: cannot connect to X server :0
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: "sudo kate errors"

Fri Aug 19, 2011 10:47 am
I think if you use sudo instead of using kdesu and run gui apps you eventually get the "Error: /var/tmp/kdecache-amer" is owned by uid 1000 instead of uid 0"

I would logout, then log in as root in non gui mode (failsafe login) delete /var/tmp/kdecache-amer & /tmp/kde-amer then make sure all my KDE config files have proper ownership by running chown -R /home/amer/.kde amer,logout then login as amer and in konsole run kbuildsycoca4 --nonincremental


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: "sudo kate errors"

Thu Aug 25, 2011 7:12 am
As stated, KDE applications must never be run using "sudo", but using either "kdesu" or "kdesudo" depending on your system.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]