Bug 413358

Summary: Session restore doesn't remember applications environmental variables
Product: [Unmaintained] ksmserver Reporter: alekksander <elum>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description alekksander 2019-10-23 10:40:36 UTC
Session restore brings back applications without their variables

STEPS TO REPRODUCE
1. Run „GTK_USE_PORTAL=1 apulse firefox %u”
2. Log Out from session or Restart PC while firefox running
3. Firefox is brought back without its variables. Plain „firefox”

EXPECTED RESULT
Firefox is restored the way it was launched. This case „GTK_USE_PORTAL=1 apulse firefox %u”

This is KDE neon 5.17, but bug was occurring in 5.16, and probably 5.15 as well.
Comment 1 David Edmundson 2019-10-23 11:53:46 UTC
tricky.
Comment 2 David Edmundson 2019-10-23 12:02:24 UTC
Urgh, bugzilla submitted prematurely.

It's somewhat difficult, the application itself is responsible for setting its own restart command. 

Apps saving the entire env would be problematic too and introduce all sorts of other bugs, firefox could know to treat this as a special case, but I don't think that's likely to happen.

I don't think this is fixable within the spec. Sorry.

Is there a reason to not set GTK_USE_PORTAL globally?