Summary: | Save and restore environment variables per application | ||
---|---|---|---|
Product: | [Unmaintained] ksmserver | Reporter: | Tristan Miller <psychonaut> |
Component: | general | Assignee: | Lubos Lunak <l.lunak> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | admin |
Priority: | NOR | ||
Version: | 5.10.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tristan Miller
2017-07-26 20:37:46 UTC
Ksmserver has no reasonable way to find out environment variables of applications. What is possible that applications tell ksmserver which variables to set again, so it would be up to each application to do this. But even than this is very problematic, as applications actually have no good way to known which variables should be restored - how is Thunderbind to know that your LC_TIME is special enough to be kept? If you launch apps in special ways manually, I'm afraid you'll need to do that manually too. I don't see a reasonable way to do this programatically, sorry. You can exclude your application from ksmserver via system settings > startup and shutdown > desktop sessions. Later add your application via kmenuedit (right click Application Launcher > edit applications) with environment variable $ env ENV_VAR=true yourapplication --arg; And finally add the application to system settings > startup and shutdown > autostart > Add Program |