Summary: | execute command on tab startup | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Caleb Cushing <xenoterracide> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | robertknight |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Caleb Cushing
2009-03-20 06:37:29 UTC
Have you looked at profiles's Command entry? For example, I have one that has 'sux - kdetrunk' (sux is similiar to su). You should be able to do lots with profiles. And if you use KDE's session management, the next time you login they should all appear as you left them. hmm... never thought of it... I assume konsole remembers each tabs profile on startup? *goes to test it out... > I assume konsole remembers each tabs profile on startup?
It does in KDE 4.2
I think this'll mostly do what I need, I'm gonna have to to work around some of it's behavior... there doesn't happen to be anything like 'tab_id' where tab_id is a unique number representing the tab that can be retrieved from the shell? is there? The environment variable $KONSOLE_DBUS_SESSION contains a string which will be unique to that tab (or more accurately, that session) of the form: /Sessions/N In Bash and probably other shells, you can get the process id of the shell using: $$ (eg. echo $$) the profile thing works well enough for what I need, at least with a few bash hacks too. resolving invalid |