Bug 413358 - Session restore doesn't remember applications environmental variables
Summary: Session restore doesn't remember applications environmental variables
Status: RESOLVED INTENTIONAL
Alias: None
Product: ksmserver
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-23 10:40 UTC by alekksander
Modified: 2019-10-23 12:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?