Bug 143528 - RFE: 'magic sequence' to invoke dcop/dbus methods from arbitrary locations
Summary: RFE: 'magic sequence' to invoke dcop/dbus methods from arbitrary locations
Status: CLOSED DUPLICATE of bug 124639
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.5
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-28 01:02 UTC by Matthew Woehlke
Modified: 2007-07-20 18:00 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 Matthew Woehlke 2007-03-28 01:02:49 UTC
Version:           1.6.5 (using KDE KDE 3.5.5)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1) 
OS:                Linux

DCOP is good for controlling the active Konsole session, but it is only useful until you change login environments (e.g. screen, telnet/ssh, su, etc.). It would be great if there was a "magic sequence" that could be generated by any shell script (I'm thinking a few no-op escapes for a header and \e[K for a footer) that could be used to execute some "safe" command sequences (things like 'change the title', 'change the schema', 'clear the history', etc.).

Security consideration: it would be simple to combine this with a sort of 'password', i.e. any command sequence that does not give the "password" is ignored. This, combined with not allowing any truly dangerous commands in the first place, should make this reasonably safe.
Comment 1 Robert Knight 2007-07-20 01:38:32 UTC
After discussion with Matthew, it seems that what he was mainly after was changing the tab name and clearing the history which can be done using the konsoleprofile tool in KDE 4.

Changing tab titles:

konsoleprofle tabtitle=<Your Name Title>

Clearing the history is done by turning the history off and back on again:

konsoleprofile HistoryMode=0
konsoleprofile HistoryMode=1  

(this assumes that fixed lengthy history is being used.  Setting HistoryMode to '2' makes the history unlimited)
Comment 2 Matthew Woehlke 2007-07-20 17:38:10 UTC
Just to clarify for the record, Robert's comments are indeed correct; at the time DCOP seemed the obvious solution, instead we have 'a different script language' that accomplishes the same effect, and yes it was the effect I was after not the means of implementing it. So opposite bug 124639, the right choice here was to ignore the summary and look at the details.

Robert: you rock! :-) Mark your resolutions better though ;-).
Comment 3 Matthew Woehlke 2007-07-20 17:38:48 UTC
Actually a duplicate of 124639 :-)

*** This bug has been marked as a duplicate of 124639 ***
Comment 4 Matthew Woehlke 2007-07-20 18:00:12 UTC
Confirming also that I've tested it and it works