Version: (using KDE KDE 3.4.1) Installed from: Gentoo Packages Compiler: gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8) OS: Linux dcop command line will not clear konsole history. Session below gets konsole pid from /proc, calls currentSession to get session, then calls clearHistory. The clearHistory call has no effect. Using konsole menu bar 'edit-clear history' works. npollitt@proclus ~ $ ps --no-header | head -n 1 | awk '{print $1;}' 10541 npollitt@proclus ~ $ cat /proc/10541/stat | awk '{print $4;}' 10527 npollitt@proclus ~ $ dcop konsole-10527 KBookmarkManager-/home/npollitt/.kde3.4/share/apps/kfile/bookmarks.xml KBookmarkManager-/home/npollitt/.kde3.4/share/apps/konqueror/bookmarks.xml KBookmarkNotifier KDebug MainApplication-Interface konsole (default) konsole-mainwindow#1 konsole-mainwindow#11 konsole-mainwindow#12 konsole-mainwindow#121 ksycoca session-1 session-2 session-3 npollitt@proclus ~ $ dcop konsole-10527 konsole currentSession session-1 npollitt@proclus ~ $ dcop konsole-10527 session-1 clearHistory
I have multiple konsole windows open. I also see this error: npollitt@proclus try486 $ dcop konsole-10527 konsole currentSession session-1 npollitt@proclus try486 $ dcop konsole-10527 session-1 clearHistory This results in clearing the history in another window. If I run just 'dcop' I only see one konsole-<pid> even though there are 4 separate windows. Running the currentSession in each window, they all return session-1. Running clearHistory on that session (currentSession - session-1) always clears the same window.
clearHistory works here on my KDE3.5 system. I'll try on KDE 3.4.x later. I just created a new Konsole window via the 'New Window'. I notice that that window doesn't show up in the dcop call. This is clearly wrong. I would say the code that creates the 'New Window' is not correct... I'm not sure this is the bug you are referring to though. Creating another Konsole window/app from the command-line does create the dcop link to that Konsole.
On Thursday 06 October 2005 9:54 pm, Kurt V.Hindenburg wrote: > > I just created a new Konsole window via the 'New Window'. I notice that that window doesn't show up in the dcop call. This is clearly wrong. I would say the code that creates the 'New Window' is not correct... I'm not sure this is the bug you are referring to though. I have 4 konsole windows open, some with multiple sessions, but I can only see 3 sessions via dcop, so something somewhere is messed up. However, these were all created at login time from my saved workspace. I'll check whether they show up when I launch konsole via command line tomorrow. Thanks.
On Thursday 06 October 2005 9:54 pm, Kurt V.Hindenburg wrote: > I just created a new Konsole window via the 'New Window'. I notice that that window doesn't show up in the dcop call. This is clearly wrong. I would say the code that creates the 'New Window' is not correct... I'm not sure this is the bug you are referring to though. > > Creating another Konsole window/app from the command-line does create the dcop link to that Konsole. I created another Konsole from the command line, and I get a new konsole process that I can see via dcop, and the session-1 clearHistory works. However, when launching from the command line I get this: konsole: WARNING: KLocale: trying to look up "" in catalog. Fix the program I hope that's helpful.
Works for me in KDE 3.5.6 Please re-open if you still have problems with recent Konsole versions.