<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>497419</bug_id>
          
          <creation_ts>2024-12-13 18:07:35 +0000</creation_ts>
          <short_desc>plasma-discover process stays in background after pressing Ctrl+Q</short_desc>
          <delta_ts>2026-08-25 10:17:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Discover</product>
          <component>discover</component>
          <version>6.2.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=507217</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anna">cyber+kde</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>kdedev</cc>
    
    <cc>LionsSharks15</cc>
    
    <cc>nate</cc>
    
    <cc>taras.oleksyn</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/discover/-/commit/6bb252afbfef7bc413824ee153285e498b669801</cf_commitlink>
          <cf_versionfixedin>6.6.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2381062</commentid>
    <comment_count>0</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2024-12-13 18:07:35 +0000</bug_when>
    <thetext>SUMMARY

Discover can take considerable amount of RAM (up to 600M), and I&apos;d like to quit it after finishing upgrades.

STEPS TO REPRODUCE
1. Discover autostarts with Plasma
2. Press Ctrl+Q

OBSERVED RESULT
&quot;plasma-discover&quot; process stays in background.

EXPECTED RESULT
Discover quits.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.3
Kernel Version: 6.12.1-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD FX-8320E Eight-Core Processor
Memory: 11.6 ГиБ of RAM
Graphics Processor: NVD9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2381091</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-12-13 18:47:13 +0000</bug_when>
    <thetext>This would be expected if it&apos;s quit while updating, but then it&apos;s supposed to quit once it&apos;s finished.

You also said &quot;Discover autostarts with Plasma&quot;. This is only expected if you&apos;re manually set it up to do so, or if it was open at logout.

Are you able to reproduce the bug if you launch Discover normally and then quit it with Ctrl+Q? Or only after it was autostarted at login?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2381096</commentid>
    <comment_count>2</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2024-12-13 18:54:07 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #1)
&gt; You also said &quot;Discover autostarts with Plasma&quot;. This is only expected if
&gt; you&apos;re manually set it up to do so, or if it was open at logout.

Ah, I probably launched it via DiscoverNotifier update notification.

&gt; Are you able to reproduce the bug if you launch Discover normally and then
&gt; quit it with Ctrl+Q? Or only after it was autostarted at login?

The plasma-discover process stays running in both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2382533</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-12-18 18:36:37 +0000</bug_when>
    <thetext>Can you try again with a newer version of KDE Frameworks? I see you&apos;re using 6.7. Try 6.9 and see if that helps; it had some fixed for similar issues in KNewStuff, which Discover uses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2382555</commentid>
    <comment_count>4</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2024-12-18 19:19:07 +0000</bug_when>
    <thetext>I&apos;m using stable-keyworded framework releases, so I&apos;ll wait until keywords are updated in Gentoo and let you know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2386119</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-02 03:47:31 +0000</bug_when>
    <thetext>🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2390414</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-01-17 03:48:08 +0000</bug_when>
    <thetext>🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2394488</commentid>
    <comment_count>7</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2025-02-02 15:43:39 +0000</bug_when>
    <thetext>I&apos;ve updated to KDE Frameworks 6.9.0 and Plasma 6.2.5 and still need to kill `plasma-discover` manually after quitting the main window.

Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.5-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD FX-8320E Eight-Core Processor
Memory: 11.6 ГиБ of RAM
Graphics Processor: NVD9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2394490</commentid>
    <comment_count>8</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2025-02-02 15:49:14 +0000</bug_when>
    <thetext>I can try debugging it myself with some guidance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2459290</commentid>
    <comment_count>9</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2025-10-03 09:16:51 +0000</bug_when>
    <thetext>Still not fixed.

Operating System: Gentoo Linux 2.18
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.2
Kernel Version: 6.15.11-gentoo (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD FX-8320E Eight-Core Processor
Memory: 12 GiB of RAM (11.6 GiB usable)
Graphics Processor: AMD REDWOOD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2499621</commentid>
    <comment_count>10</comment_count>
    <who name="Serena Star">LionsSharks15</who>
    <bug_when>2026-03-01 23:32:29 +0000</bug_when>
    <thetext>Issue exists for me as well. I can&apos;t open Plasma Discover sporadically because a plasma-discover process is already running, and the only way to resolve the issue is to run &quot;kill plasma-discover&quot; (I do this through KRunner).
Some info to help you debug, if I try to run this program through the terminal while a process is already running, I get the following outputs:
QThreadStorage: entry 2 destroyed before end of thread 0x56279d187b30
QThreadStorage: entry 1 destroyed before end of thread 0x56279d187b30
I experienced this issue on both Debian 13 KDE (6.3.6-1) and Fedora 43 (6.6.1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502269</commentid>
    <comment_count>11</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2026-03-10 17:40:18 +0000</bug_when>
    <thetext>I&apos;m not able to reproduce this on Plasma 6.6.2. After quitting Discover with Ctrl+Q, the process exits
I&apos;m going to mark this resolved. If anyone sees this on 6.6.2 or later, feel free to reopen this report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2502741</commentid>
    <comment_count>12</comment_count>
    <who name="Serena Star">LionsSharks15</who>
    <bug_when>2026-03-12 08:12:45 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #11)
&gt; I&apos;m not able to reproduce this on Plasma 6.6.2. After quitting Discover with
&gt; Ctrl+Q, the process exits
&gt; I&apos;m going to mark this resolved. If anyone sees this on 6.6.2 or later, feel
&gt; free to reopen this report.

Sorry but I am still experiencing this issue on Fedora 43 with Discover v6.6.2 so I must reopen. I&apos;ve tried closing using the titlebar button and Control + Q, neither close the problematic lingering processes. Any guidance to help debug this would be appreciate. I&apos;m willing to help in any way to get to the root of this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523959</commentid>
    <comment_count>13</comment_count>
    <who name="Serena Star">LionsSharks15</who>
    <bug_when>2026-06-17 20:03:10 +0000</bug_when>
    <thetext>(In reply to Serena Star from comment #12)
&gt; (In reply to TraceyC from comment #11)
&gt; &gt; I&apos;m not able to reproduce this on Plasma 6.6.2. After quitting Discover with
&gt; &gt; Ctrl+Q, the process exits
&gt; &gt; I&apos;m going to mark this resolved. If anyone sees this on 6.6.2 or later, feel
&gt; &gt; free to reopen this report.
&gt; 
&gt; Sorry but I am still experiencing this issue on Fedora 43 with Discover
&gt; v6.6.2 so I must reopen. I&apos;ve tried closing using the titlebar button and
&gt; Control + Q, neither close the problematic lingering processes. Any guidance
&gt; to help debug this would be appreciate. I&apos;m willing to help in any way to
&gt; get to the root of this issue.

Issue still present in Discover 6.7.0, Plasma 6.7.0, Frameworks 6.27.0, Qt 6.11.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2526475</commentid>
    <comment_count>14</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2026-06-24 20:27:02 +0000</bug_when>
    <thetext>Can you let us know the output of this command?

plasma-discover --listbackends</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2527236</commentid>
    <comment_count>15</comment_count>
    <who name="Serena Star">LionsSharks15</who>
    <bug_when>2026-06-27 00:28:04 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #14)
&gt; Can you let us know the output of this command?
&gt; 
&gt; plasma-discover --listbackends

Sure thing:

Available backends:
 * flatpak-backend
 * kns-backend
 * packagekit-backend
 * fwupd-backend</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529301</commentid>
    <comment_count>16</comment_count>
    <who name="Taras Oleksyn">taras.oleksyn</who>
    <bug_when>2026-07-05 03:15:49 +0000</bug_when>
    <thetext>This one might be a duplicate of https://bugs.kde.org/show_bug.cgi?id=522245.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529316</commentid>
    <comment_count>17</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2026-07-05 05:19:44 +0000</bug_when>
    <thetext>(In reply to TraceyC from comment #14)
&gt; Can you let us know the output of this command?
&gt; 
&gt; plasma-discover --listbackends

Available backends:
 * kns-backend
 * flatpak-backend</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2529324</commentid>
    <comment_count>18</comment_count>
    <who name="Anna">cyber+kde</who>
    <bug_when>2026-07-05 05:29:23 +0000</bug_when>
    <thetext>(In reply to Taras Oleksyn from comment #16)
&gt; This one might be a duplicate of https://bugs.kde.org/show_bug.cgi?id=522245.

Yes, they are very similar.

&gt; The process stays alive in the background, and a new discover window cannot be opened until that background process is manually killed.

When I first reported this bug that wasn&apos;t the case, although now (as of Plasma 6.6.5) a new Discover windows fails to open unless I kill the background process manually.

$ plasma-discover
QThreadStorage: entry 2 destroyed before end of thread 0x555b75abe800
QThreadStorage: entry 1 destroyed before end of thread 0x555b75abe800

Also for me it doesn&apos;t matter whether some loading is happening. I can reproduce this bug if I quit after finishing updates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2530275</commentid>
    <comment_count>19</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-07-08 22:37:07 +0000</bug_when>
    <thetext>https://invent.kde.org/plasma/discover/-/merge_requests/1355 might fix this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2538983</commentid>
    <comment_count>20</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-08-14 16:54:42 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1393</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2539122</commentid>
    <comment_count>21</comment_count>
    <who name="Oliver Beard">olib141</who>
    <bug_when>2026-08-15 14:10:18 +0000</bug_when>
    <thetext>Git commit a8b5538958594d90406aa0294d3934bcd06e7607 by Oliver Beard, on behalf of Aleix Pol.
Committed on 15/08/2026 at 14:03.
Pushed by olib into branch &apos;master&apos;.

DiscoverObject: Address quitting with concurrent KJobs

We have a mechanism that disables random eventloops (KJobs) from
quitting Discover outside of the user&apos;s interaction (see
QCoreApplication::setQuitLockEnabled in discover/main.cpp).

It so happens that we would at times have KJobs running also _after_
Discover&apos;s window closes. See how on the reported bugs they often
describe it happening early in the startup process.

This patch restores the Q*Application::quitLockEnabled property so that
once Discover is with its task and we let go and QCoreApplication can
let these jobs finish and eventually quit.

It changes the DummyBackend to issue a KJob at the start to be able to
reproduce this problem and eventually its fix.
Related: bug 522245, bug 522815, bug 518264

M  +2    -0    discover/DiscoverObject.cpp
M  +22   -0    libdiscover/backends/DummyBackend/DummyBackend.cpp

https://invent.kde.org/plasma/discover/-/commit/a8b5538958594d90406aa0294d3934bcd06e7607</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2539129</commentid>
    <comment_count>22</comment_count>
    <who name="Oliver Beard">olib141</who>
    <bug_when>2026-08-15 14:31:34 +0000</bug_when>
    <thetext>Git commit 0d0a1d35c715838f585590d54a1a9d5b14cbd151 by Oliver Beard.
Committed on 15/08/2026 at 14:11.
Pushed by olib into branch &apos;Plasma/6.7&apos;.

DiscoverObject: Address quitting with concurrent KJobs

We have a mechanism that disables random eventloops (KJobs) from
quitting Discover outside of the user&apos;s interaction (see
QCoreApplication::setQuitLockEnabled in discover/main.cpp).

It so happens that we would at times have KJobs running also _after_
Discover&apos;s window closes. See how on the reported bugs they often
describe it happening early in the startup process.

This patch restores the Q*Application::quitLockEnabled property so that
once Discover is with its task and we let go and QCoreApplication can
let these jobs finish and eventually quit.

It changes the DummyBackend to issue a KJob at the start to be able to
reproduce this problem and eventually its fix.
Related: bug 522245, bug 522815, bug 518264


(cherry picked from commit a8b5538958594d90406aa0294d3934bcd06e7607)

Co-authored-by: Aleix Pol &lt;aleixpol@kde.org&gt;

M  +2    -0    discover/DiscoverObject.cpp
M  +22   -0    libdiscover/backends/DummyBackend/DummyBackend.cpp

https://invent.kde.org/plasma/discover/-/commit/0d0a1d35c715838f585590d54a1a9d5b14cbd151</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2541661</commentid>
    <comment_count>23</comment_count>
    <who name="Oliver Beard">olib141</who>
    <bug_when>2026-08-25 10:17:56 +0000</bug_when>
    <thetext>Git commit 6bb252afbfef7bc413824ee153285e498b669801 by Oliver Beard.
Committed on 15/08/2026 at 14:10.
Pushed by olib into branch &apos;Plasma/6.6&apos;.

DiscoverObject: Address quitting with concurrent KJobs

We have a mechanism that disables random eventloops (KJobs) from
quitting Discover outside of the user&apos;s interaction (see
QCoreApplication::setQuitLockEnabled in discover/main.cpp).

It so happens that we would at times have KJobs running also _after_
Discover&apos;s window closes. See how on the reported bugs they often
describe it happening early in the startup process.

This patch restores the Q*Application::quitLockEnabled property so that
once Discover is with its task and we let go and QCoreApplication can
let these jobs finish and eventually quit.

It changes the DummyBackend to issue a KJob at the start to be able to
reproduce this problem and eventually its fix.
Related: bug 522245, bug 522815, bug 518264


(cherry picked from commit a8b5538958594d90406aa0294d3934bcd06e7607)

Co-authored-by: Aleix Pol &lt;aleixpol@kde.org&gt;

M  +2    -0    discover/DiscoverObject.cpp
M  +22   -0    libdiscover/backends/DummyBackend/DummyBackend.cpp

https://invent.kde.org/plasma/discover/-/commit/6bb252afbfef7bc413824ee153285e498b669801</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>