trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: February 2012

Could not load library! Trying exec....

From: Darrell Anderson <humanreadable@...>
Date: Wed, 29 Feb 2012 08:35:23 -0800 (PST)
I'm seeing these messages in my xsession log. The standard as-is message looks like that in the subject line. My messages now look like this:

[kinit] Could not load library (artswrapper)! Trying exec...
[kinit] Could not load library (/usr/local/bin/run_conky)! Trying exec...
[kinit] Could not load library (/usr/bin/VBoxClient-all)! Trying exec...

I added the [kinit] prefix in a patch I have not yet submitted to clarify the source of the message. I also patched the error string with the %s parameter to identify the object of the message.

The message sort of makes sense. kinit is trying to load/run/launch something that is not a library but is an executable. Browsing the source code (tdelibs/kinit/kinit.cpp) indicates there is a distinction between libraries and executables. Therefore I'm wondering whether the message should be displayed, clutters the xsession log, or should be revised.

As you can see from the as-is format, the message is not informative at all. Worse, the exclamation mark is misleading and needlessly disturbing to anybody reading the log. An exclamation mark should indicate something serious that needs attention but that is not the case here. The message is somewhat informative but is not emergency. If the message is valuable then rewording would help. Possibly something like:

[kinit] artswrapper is an executable and not a library. Launching with exec...

If there are no objections then I'd like to patch that error string as above and push to GIT.

Darrell