Skip to content

馃崚 startplasma: Also set environment variable when it is not currently set

Kai Uwe Broulik requested to merge work/cherry-pick-f469e2f2 into Plasma/6.1
  • startplasma: Also set environment variable when it is not currently set

qgetenv returns a null QByteArray when there is currently no such variable. A null QByteArray is distinct from an empty one. However, operator!= will treat them the same. Therefore it's impossible to set an environment variable to an empty value.

Explicitly check for null and also qputenv it when this is the case.

BUG: 490432

Merge request reports

Loading