[Konsole-devel] [Bug 227296] New: more KONSOLE_DBUS_ env variables

Caleb Cushing xenoterracide at gmail.com
Tue Feb 16 23:59:19 UTC 2010


https://bugs.kde.org/show_bug.cgi?id=227296

           Summary: more KONSOLE_DBUS_ env variables
           Product: konsole
           Version: 2.4
          Platform: Archlinux Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel at kde.org
        ReportedBy: xenoterracide at gmail.com


Version:           2.4 (using KDE 4.4.0)
OS:                Linux
Installed from:    Archlinux Packages

I could specifically use a $KONSOLE_DBUS_PROFILE that has stored what the
current konsole profile is. I can see others being useful too.

here's an example of what I have right now. I'm manually setting
KONSOLE_PROFILE in the profile's env variable area.

# set up env based on KONSOLE_PROFILE and KONSOLE_SESSION
# Test to see if the KONSOLE_PROFILE is empty
if [ ! -z ${KONSOLE_PROFILE} ]; then
        S="_" #a seperator for HISTFILE if a profile is actually set
        if [ ${KONSOLE_PROFILE} = "shell" ]; then
                        umask 0077
        elif [ ${KONSOLE_PROFILE} = "webdev" ]; then
                        PS1='\[\033[01;35m\]\h\[\033[01;34m\] \W $
\[\033[00m\]'
                        umask 0027
        fi
fi

export
HISTFILE="${HOME}/.bash_history${S}${KONSOLE_PROFILE}${S}${KONSOLE_DBUS_SESSION##*/}"

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list