Bug 643450

Summary: Gnome session saves application positions, but not workspace assignment
Product: Red Hat Enterprise Linux 6 Reporter: Scott Spurrier <spurrier>
Component: metacityAssignee: Owen Taylor <otaylor>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: rstrode, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-12 22:13:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 662543, 782183, 835616    
Attachments:
Description Flags
Possible patch to address the issue in metacity none

Description Scott Spurrier 2010-10-15 16:15:19 UTC
Description of problem:

In RHEL 6.1 RC, when you log out of gnome is saves which applications are running and their position, but it isn't saving which workspace it is assigned to so all applications end up on the first workspace when you log back in.

Comment 5 Olivier Fourdan 2010-12-13 14:30:12 UTC
Created attachment 468386 [details]
Possible patch to address the issue in metacity

What happens is that metacity uses the same state file each time, named after the SM client-id which remains.

gnome-session removes 'old' the state file after the app has saved its state but metacity uses the same so its state file is removed by the session manager and the state is not restored (thus the position and workspace of running windows is not restored).

TBH this is really a gnome-session issue, it should have been addressed by that commit upstream:

  http://git.gnome.org/browse/gnome-session/commit/?id=3e346957cebcbf9e747757d2d649329266743afc

That patch is already in gnome-session 2.28.0 in el6, but unfortunately it does not seem to work as expected and the state file is really removed by gnome-session (the discard_exec hash should prevent this, but it does not, I am investing this as to why it does not work as expected).

This patch here is for metacity (although again, this is a gnome-session issue, not metacity), and is mainly a proof of concept, it allows for --sm-save-file and --sm-client-id to be used simultaneously in metacity.
 
Initially metacity allows for only --sm-client-id or --sm-save-file to be used and name its save state file after the client-id.
 
Other GNOME applications using eggsmclient use a  different state file each time, so that the new one does not get removed along  with the old state file.

It works well and the session is properly restored, but YYMV and a proper fix in gnome-session might be preferable.

Comment 6 Suzanne Logcher 2011-01-05 19:44:46 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated 
in the current release, Red Hat is unfortunately unable to 
address this request at this time.  This request has been 
proposed for the next release of Red Hat Enterprise Linux.
If you would like it considered as an exception in the 
current release, please ask your support representative.

Comment 8 RHEL Program Management 2011-07-06 01:00:45 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 9 Ray Strode [halfline] 2011-07-27 21:09:59 UTC
suggest we either WONTFIX this or dupe it with bug 664516 which, when fixed, will render the patch in attachment 468386 [details] unnecessary

Comment 11 Tom Lavigne 2012-09-18 15:22:46 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
    
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2013-10-14 01:14:31 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 13 Andrius Benokraitis 2013-11-12 22:13:51 UTC
After thorough deliberation, this bugzilla is not planned on being addressed in the Red Hat Enterprise Linux 6 time frame.