Bug 163936

Summary: [RFE] save/restore profile variables via "konsoleprofile"
Product: [Applications] konsole Reporter: Matthew Woehlke <mwoehlke.floss>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED LATER    
Severity: wishlist CC: adaptee
Priority: LO    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Matthew Woehlke 2008-06-13 00:48:04 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I love the utility of 'konsoleprofile'! But you know those pesky users, give them a steak, and they want lobster as well :-). Would it be terribly hard to add the ability to save/restore variables this way? I'm thinking something like this:

# .bashrc
su() {
  konsoleprofile "push(ColorScheme);ColorScheme=Root"
  command su
  konsoleprofile "pop(ColorScheme)"
}

...bonus points for adding command chaining (if it's not already possible?), but I don't have any particular need for it, I'm just a lazy typist in bug reports ;-).
Comment 1 Kurt Hindenburg 2012-06-19 02:54:14 UTC
I don't really see this happening - the konsoleprofile is a really small (1 line) sh script.

If someone wants to code it we'll see.
Comment 2 Matthew Woehlke 2012-06-19 17:51:00 UTC
I don't think it would actually involve changing "konsoleprofile" as such (better, in fact, if it didn't) so much as teaching Konsole itself to recognize additional commands such as in the example above.