Skip to content

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

Kai Uwe Broulik requested to merge work/kbroulik/startplasma-empty-env into master

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 qsetenv it when this is the case.

BUG: 490432

Merge request reports

Loading