Bug 113986 - dcop clearHistory has no effect
Summary: dcop clearHistory has no effect
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 22:28 UTC by Nick Pollitt
Modified: 2007-07-19 19:27 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 Nick Pollitt 2005-10-06 22:28:33 UTC
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
Comment 1 Nick Pollitt 2005-10-06 23:22:35 UTC
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.
Comment 2 Kurt Hindenburg 2005-10-07 06:54:55 UTC
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.
Comment 3 Nick Pollitt 2005-10-07 09:28:25 UTC
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.
Comment 4 Nick Pollitt 2005-10-07 18:13:00 UTC
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.
Comment 5 Robert Knight 2007-07-19 19:27:37 UTC
Works for me in KDE 3.5.6

Please re-open if you still have problems with recent Konsole versions.