Bug 156563 - Feature suggestion: A way to uniquely identify sessions
Summary: Feature suggestion: A way to uniquely identify sessions
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 17:41 UTC by Richard Hartmann
Modified: 2011-07-19 03:07 UTC (History)
3 users (show)

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 Richard Hartmann 2008-01-24 17:41:47 UTC
Version:            (using KDE 3.5.8)
Installed from:    Debian testing/unstable Packages

Recently, the ZSH-users ML discussed[1] a feature that would basically restore all shell sessions after re-login as if you never stopped editing. The one thing that lacks is a way for the shell to determine in what terminal it is located. This should be trivial to add to Konsole and would be a _huge_ boost to productivity.

Please note that said suggestion is far from finished and feel free to chip in :)


Richard

[1] http://www.zsh.org/mla/users/2008/msg00064.html
Comment 1 Richard Hartmann 2008-01-24 17:42:43 UTC
PS: This applies to KDE4 as well, but here's to hoping this will be implemented in the 3.5 branch, as well :)
Comment 2 Robert Knight 2008-01-24 18:39:46 UTC
I like the suggestion.  The "session management" terminal feature in KDE 3 would work much better with some shell support.

> PS: This applies to KDE4 as well, but here's to hoping this will be implemented in the 3.5 branch, as well :) 

Unless the changes to Konsole are trivial, that is unlikely I'm afraid.  KDE 3.5 is largely frozen for new features.

Comment 3 Richard Hartmann 2008-01-24 20:59:43 UTC
Yes, and at least the ZSH crowd seems to be willing to take up their part.

If you read the thread, you will see that there is some half-finished standard suggestion in the works. Personally, I would just store a uuid in a environment variable as anything else seems like overkill, to me.

That change should be trivial enough to make it into the 3.5 branch even if there is no 3.5.9. You could, possibly, offer an option not to restore the directories in the session management and let the shell handle that, as well.

Do you have any suggestions for handling this or are you happy to go with whatever we come up with?
Comment 4 Richard Hartmann 2008-01-24 21:07:39 UTC
Just saw that you already posted. Apologies. If the topic moves from zsh-users to zsh-workers, I will let you know :)
Comment 5 Richard Hartmann 2009-01-15 07:07:08 UTC
Now that 4.2 is almost out the door, is there any chance for this in KDE 4.3?
Comment 6 Robert Knight 2009-01-15 16:07:04 UTC
> Now that 4.2 is almost out the door, is there any chance for this in KDE 4.3?

There is no roadmap for Konsole in 4.3 yet.
Comment 7 argonel 2010-05-12 08:10:19 UTC
SVN commit 1125733 by argonel:

Adds support for SHELL_SESSION_ID.
CCBUG:156563


 M  +53 -1     Session.cpp  
 M  +9 -1      Session.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1125733
Comment 8 Jekyll Wu 2011-07-17 17:59:13 UTC
should this bug be closed now ?
Comment 9 Kurt Hindenburg 2011-07-19 03:07:21 UTC
Reopen if the previous commit doesn't work for you.

Now it saves the Id in the session file:
SessionGuid={5f19f674-1263-437f-bb61-b784d4470138

In Shell:

SHELL_SESSION_ID=5f19f6741263437fbb61b784d4470138