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.
tricky.
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?