Bug 107048 - kate crashes when invoked as sudo kate <filename>
Summary: kate crashes when invoked as sudo kate <filename>
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.4
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-08 17:46 UTC by R (Chandra) Chandrasekhar
Modified: 2005-08-15 12:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R (Chandra) Chandrasekhar 2005-06-08 17:46:14 UTC
Version:           2.4 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3.2 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux (i686) release 2.6.10-5-386

kate crashes when invoked with sudo.  For example, to edit the file /etc/cups/cupsd-browsing.conf:

sudo kate /etc/cups/cupsd-browsing.conf

gives

Error: "/var/tmp/kdecache-chandraEsOqK9" is owned by uid 1000 instead of uid 0.
Link points to "/var/tmp/kdecache-root"
kate: ERROR: Communication problem with kate, it probably crashed.

There is also an error message with kedit: 

sudo kedit /etc/cups/cupsd-browsing.conf

gives 
Error: "/tmp/kde-chandra" is owned by uid 1000 instead of uid 0.
Link points to "/tmp/kde-root"

But kedit does not crash.

Also, with kwrite, 

sudo kwrite /etc/cups/cupsd-browsing.conf

gives

Error: "/var/tmp/kdecache-chandraEsOqK9" is owned by uid 1000 instead of uid 0.
Link points to "/var/tmp/kdecache-root"
Error: "/tmp/kde-chandra" is owned by uid 1000 instead of uid 0.
Link points to "/tmp/kde-root"

but kwrite does not crash.

Only kate crashes.

NB: I use Kubuntu Hoary and use sudo kate for editing files in the system area since the root user is not generally used.  If I need to report this to  the (K)ubuntu packagers, do let me know.  I have now switched to kedit for sudo editing.

TIA.
Comment 1 Dave Rowe 2005-08-05 03:27:27 UTC
I see the same text you list above, but I cannot get Kate to crash.  I'm running Kate from the 3.5 branch in svn, so I'm guessing this bug has been fixed?

Fedora Core 3
KDE - 3.5 branch from svn.

Thanks,
Dave
Comment 2 Christoph Cullmann 2005-08-15 12:10:00 UTC
This is a problem with KUniqueApplication, in KDE 3.5, this will be possible, the KDE 3.x releases before won't work that way as they NEED DCOP and that failed.