Bug 113589 - Add an option to allow exporting of user defined variables from Konsole Session Configuration tab
Summary: Add an option to allow exporting of user defined variables from Konsole Sessi...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.5.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-29 22:35 UTC by Ritesh Raj Sarraf
Modified: 2007-07-28 19:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Raj Sarraf 2005-09-29 22:35:42 UTC
Version:           1.5.2 (using KDE KDE 3.4.2)
Installed from:    Debian testing/unstable Packages

Please add an option into Konsole's "Session Configuration" tab.
Presently only $TERM can be changed. But since $TERM is a very important variable for other programs to function, we can't mess with it.

The reason to have such an option is because people might be wanting to provide specially customized sessions to customers for specific applications.

Another benefit is, say I have a custom script for an application which will run through this customized Konsole Session. If I'm adding all of the script contents to .bashrc or .bash_profile, that'll get sourced by every shell. But I want it to be sourced only when my _this_ special Konsole Session is run. Right now you've provided only $TERM to be modifiable and that is not good. Changing $TERM to something non-standard breaks functionality of many other important programs.

Please feel free to mail me if there's any point I've not been able to explain.
Comment 1 Kurt Hindenburg 2005-09-30 21:18:35 UTC
You want variables for Font, Keytab, Schema?

For example, if Schema is 'Black on Light Yellow' you want $KONSOLE_SCHEMA="Black on LIght Yellow"?
Comment 2 Ritesh Raj Sarraf 2005-10-01 04:41:26 UTC
No,

When I said session I meant a "New Session Type" like Python or "New Screen Session". I'm trying to add an additional session, "New SSH session" which when run would execute keychain and gpg-agent.
How do I differentiate them ? I've got 100 lines in my .bashrc to be executed when this _"New SSH Session"_ is run. If you would make it flexible to add user variables in the "Session Configuration" tab, my customization would be simple.

if [ $USER_VAR == "SPECIAL_KONSOLE_SESSION" ]; then
.. execute the 100 lines
fi


This is just one example. I'm sure other people could make out other use too.
Comment 3 Robert Knight 2006-10-01 05:01:04 UTC
Good idea.  Could be incorporated when the settings dialog is redesigned.
Comment 4 Robert Knight 2007-07-28 18:22:08 UTC
Fixed in KDE 4.  The environment is presented as a list of NAME=VALUE pairs, defaulting to just "TERM=xterm" to which you can add your own.

To change the environment for a profile you:

1.  Go to Settings -> Manage Profiles
2.  Select the profile you want to change and click 'Edit'
3.  Click the 'Edit Environment' button on the 'General' page of the dialog which appears
4.  Add or edit items in the list which appears
5.  Click OK to accept the changes


Comment 5 Ritesh Raj Sarraf 2007-07-28 19:08:29 UTC
Thank You Robert.