[libkworkspace] Introduce UpdateLaunchEnvJob
ClosedPublic

Authored by broulik on Jan 29 2020, 3:39 PM.

Details

Summary

This is supposed to replace manual DBus calls to KLauncher setLaunchEnv done in e.g. the KCMs, so this can easily be extended in the future.

Test Plan
  • Successfully changed an env variable

Diff Detail

Repository
R120 Plasma Workspace
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Jan 29 2020, 3:39 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 29 2020, 3:39 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jan 29 2020, 3:39 PM

+++

Lets port some usages, so we can confirm it works in practice, but this looks good

libkworkspace/updatelaunchenvjob.cpp
80

Not quite. It's plasma-session

It spawns processes, which in turn might update the launch env, that we should have that env when we spawn the next round of processes.

libkworkspace/updatelaunchenvjob.h
29

Docs

davidedmundson accepted this revision.Jan 30 2020, 10:53 AM
This revision is now accepted and ready to land.Jan 30 2020, 10:53 AM
This revision was automatically updated to reflect the committed changes.