[khelpcenter] [Bug 522318] New: Khelpcenter does not inherit environment variables unless started via Terminal

VinVel <[email protected]> Sun, 28 Jun 2026 02:50:01 +0000
Newsgroups gmane.comp.kde.doc
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=3D522318

            Bug ID: 522318
           Summary: Khelpcenter does not inherit environment variables
                    unless started via Terminal
    Classification: Applications
           Product: khelpcenter
      Version First 6.0.25123
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When starting khelpcenter, qtwebengine makes use of the wrong gpu on my sys=
tem,
as in, when I click through the programs on the left, the right where the
articles should appear are black. Easy enough, specifying the right gpu sho=
uld
fix it (MESA_VK_DEVICE_SELECT=3D10de:2504!). If I do that while in the term=
inal
the applications works as expected. However, if I now try to edit either the
.desktop File, or KHelpCenter through kmenueditor, while this environment
variable gets saved, it is not being applied. When I start Khelpcenter eith=
er
through kruner or the normal application launcher, I have the same issue as
before.

Furthermore, if I edit org.kde.khelpcenter.desktop file to something bogus =
like
starting okular instead of khelpcenter it still starts khelpcenter so somet=
hing
is very wrong?

I tried reinstalling khelpcenter if that helped at anything, unfortunately =
no.

STEPS TO REPRODUCE
1. Start khelpcenter through a terminal emulator like console with some
environment variable
2. Do the same through the 'normal GUI way'
3. Observe difference

OBSERVED RESULT
Environment variables aren't being inherited correctly and does not respect
.desktop file

EXPECTED RESULT
Environment variables should be inherited correctly and respect .desktop fi=
le.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` i=
n a
terminal window):
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
I was told to refresh the cache with `kbuildsycoca6` which I did, but no
behaviour change.=20

Entering `where khelpcenter` gives me back two locations. Is that relevant?
/usr/bin/khelpcenter
/bin/khelpcenter

I am on Fedora 44

--=20
You are receiving this mail because:
You are the assignee for the bug.=