On Thu, 15 Oct 2009 14:20:57 +1100, Doug Laidlaw wrote:
Quote:
To get around that one, I made kwrite an alias to "kwrite $1 2> /dev/null"
but even running "/usr/bin/kwrite" which should bypass the alias, I see no
messages now.
Instead of an alias I made a wrapper.
#************************************* start kwrite ****************************
#*
#* kwrite - suppress kde dialog messages when using kwrite
#*
#* Note: /local/bin/kdebugrc_kwrite controls messages and is created
#* by running kdebugdialog and moving $HOME/.kde4/share/config/kdebugrc
#* to /local/bin/kdebugrc_kwrite
#*
#*******************************************************************************
_dir=$HOME/.kde4/share/config
_fn=$_dir/kdebugrc
if [ -d $_dir ] ; then
if [ -e $_fn ] ; then
/bin/mv ${_fn} ${_fn}_tmp
fi
ln -s /local/bin/kdebugrc_kwrite $_fn
fi # end [ -d $_dir ]
/usr/bin/kwrite "$*" &
if [ -e $_fn ] ; then
sleep 2
/bin/rm -f {_fn}
if [ -e ${_fn}_tmp ] ; then
mv ${_fn}_tmp {_fn}
fi
fi
#************************************* end kwrite ******************************
Quote:
I tried using a non-KDE terminal, but that didn't help at
all. Apparently, KDE still want to advertise their incompetence, such as:
"QPainter isn't running, but it can't find this -- or this -- or this."
After some research I found the culprit.
Quote:
My personal opinion is that those messages are for developers, and the whole
lot should be turned off by default for the ordinary user. Probably the
only developers who have any use for them are KDE's. They will exist under
Windows (although on the rare occasions when I have used a command box, I
have never seen one) and if we run Linux as KDE wants, as another Windows,
we won't see them. Everything still runs fine without them.
Not their fault, it is Mandriva's.
Quote:
What peeves me is something like this:
I will exit a program started from a terminal, and wait for the drivel to
stop. Then I start typing my next command. Half-way through the typing,
KDE interposes a late message, and I need to remember where I was. The
message about ICE used to be the main offender.
Yep, been there.
Quote:
I don't have $HOME/.kde4/share/config/kdebugrc
Yes, that is correct.
Current KDE setup is, if you have not changed something, you will not
have a $HOME/.kde4/share/config/ file.
Quote:
I have kdebugrc in /opt/kde3/share/config/
You should also have a /usr/share/config/kdebugrc, at least for kde4
Quote:
(with 'example' mis-spelled,) and in
/var/lib/mandriva/kde4-profiles/common/share/config/ (spelled correctly, and
a lot more detailed.)
And that is the culprit in this who done it.
I still say the dialog control should be in an application's preference.