session support

Bug #206677 reported by Chris Jones
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Won't Fix
High
Unassigned

Bug Description

when a gnome user logs out with various programs running, it is expected that those programs will continue to run pretty much as they were before, when the user logs back in again.
Terminator should support this ability, so users can save their gnome session and automagically get back their terminator setup.

Revision history for this message
Chris Jones (cmsj) wrote :

(aiui, session support isn't specifically a Gnome feature in that there is a generic X session mechanism, but as yet I am not familiar with it and we probably need to have general profile support in place before we can properly express any given setup).

Changed in terminator:
importance: Undecided → High
milestone: none → 1.0-beta
status: New → Triaged
Revision history for this message
Romeo A. Cioaba (romeo-cioaba) wrote :

This feature would make terminator a rock star. imagine having to go to work and having to open 20 ssh shells or smthing to different servers/routers etc. Would be great to just fire up terminator and connections to be automagicaly started :)

Revision history for this message
Matias Vidal (matiasv) wrote :

I would be happy enough if terminator saves my current layout on log-out, I can do that manually placing xterms around my desktop.

odinfromvalhalla, screen (http://www.gnu.org/software/screen/) is the killer app here, pair it with terminator and you got a winner!

Revision history for this message
Thomas Hurst (tom.hurst) wrote :

It looks like we'll need gnome.ui for xsm support:

import gnome.ui
c = gnome.ui.Client()
c.connect('save_yourself', save_handler)

The callback basically needs to form a command line which will restart Terminator in its current state and pass it to c.set_restart_command()/set_clone_command(). Should be simple enough when we get profiles and layout saving hooked up.

Revision history for this message
Thomas Hurst (tom.hurst) wrote :

I've added basic session support to a development branch. Doesn't restore your layout, but if you did terminator -e foo, you should get back a terminator running foo, from whatever directory you were in when Terminator started.

Rumor has it that the session manager will restore our geometry, so I don't pass in our own --geometry; the code's there commented out if it turns out this isn't the case.

Please test; I don't use X session management, so the only thing I've tested is that the debug output from calling the handler manually looks sensible.

Changed in terminator:
assignee: nobody → tom.hurst
status: Triaged → In Progress
Revision history for this message
Thomas Hurst (tom.hurst) wrote :

This has now been pushed to trunk. No layout saving, but the basics are there.

Changed in terminator:
status: In Progress → Fix Committed
Chris Jones (cmsj)
Changed in terminator:
status: Fix Committed → Fix Released
Revision history for this message
Chris Jones (cmsj) wrote :

Reopened because there is no gnome session code yet in the post-epic-refactor world, but there should be, and it should pay attention to bug #525509

Changed in terminator:
assignee: Thomas Hurst (tom.hurst) → nobody
status: Fix Released → Triaged
milestone: 1.0-beta → 0.90-beta
Chris Jones (cmsj)
Changed in terminator:
milestone: 0.90-beta → 1.0-beta
Revision history for this message
Chris Jones (cmsj) wrote :

afaik sessions are essentially deprecated

Changed in terminator:
status: Triaged → Won't Fix
Chris Jones (cmsj)
Changed in terminator:
milestone: 1.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.