Bug 87151 - Errors appear when running GUI programs from Konsole as root
Summary: Errors appear when running GUI programs from Konsole as root
Status: RESOLVED WORKSFORME
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-13 20:35 UTC by Adam
Modified: 2004-12-10 00:09 UTC (History)
1 user (show)

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 Adam 2004-08-13 20:35:05 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6) 
OS:                Linux

When I'm logged into KDE as a regular user, then open a Konsole (haven't tried it with other command line programs), then su to root, then run a GUI program, it starts but there are error messages printed by Konsole.  For example, when I start Konqueror the error messages that appeared are:

QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
QPixmap: Cannot create a QPixmap when no GUI is being used
kbuildsycoca running...

then once I exit Konqueror, after a while (about 10 seconds to a minute) the following appears:

Mutex destroy failure: Device or resource busy
sh: line 1: iceauth: command not found

then after another bit of time the following appears:

ICE default IO error handler doing an exit(), pid = 19864, errno = 2

I had set up my computer so I can run GUI programs as root by running "xhost +local:" in the bashrc of my normal user and by setting root's DISPLAY environment variable to ":0.0".  I'm not completely sure I did that properly.
Comment 1 Clarence Dang 2004-08-16 03:32:33 UTC
"ICE default IO error handler doing an exit(), pid = 19864, errno = 2"

Yes, what does that message mean?  Sometimes when I start a KDE app, it just quits immediately with a similar error; starting the app again immediately afterwards works.
Comment 2 Waldo Bastian 2004-08-16 10:17:28 UTC
ICE is the protocol used by session management and DCOP. Normally you get the error when the connection with the session manager or the dcopserver disappears.

Not sure what the problem of the original reporter is, but "iceauth" missing is bad. You must make sure that iceauth is present in the path.

The other messages are mostly useless messages generated by Qt. Smart distributions have patched those out ;-)
Comment 3 Adam 2004-08-16 17:49:58 UTC
> The other messages are mostly useless messages generated by Qt. Smart distributions have patched those out ;-) 

Huh, and here I was thinking Gentoo is the smartest distribution around. :)

Is this considered a Gentoo bug report, then, or a wishlist item for Gentoo?

You were right about the iceauth error - only my regular user had /usr/X11R6/bin in $PATH, but root didn't.  I put the rest of $PATH in root's $PATH, and that message went away but the others were still there.
Comment 4 Waldo Bastian 2004-11-29 18:07:51 UTC
Wishlist item for Gentoo regarding the QPixmap warning printed by Qt I would say.
Comment 5 Adam 2004-12-10 00:09:34 UTC
I reported it at http://bugs.gentoo.org/show_bug.cgi?id=73338.  Someone there suggested that the Mutex destroy failure might be due to improper use of QMutex.