https://bugs.kde.org/show_bug.cgi?id=490432

Kai Uwe Broulik <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/f469e2f22d8137e578fe5a729 |t/a413e7d985bcd0b54dea24755
                   |3287e64eb1dce94             |6aa21328ffcd43b

--- Comment #3 from Kai Uwe Broulik <[email protected]> ---
Git commit a413e7d985bcd0b54dea247556aa21328ffcd43b by Kai Uwe Broulik.
Committed on 23/07/2024 at 12:14.
Pushed by broulik into branch '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.


(cherry picked from commit f469e2f22d8137e578fe5a7293287e64eb1dce94)

Co-authored-by: Kai Uwe Broulik <[email protected]>

M  +2    -1    startkde/startplasma.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/a413e7d985bcd0b54dea247556aa21328ffcd43b

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to