<?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>466693</bug_id>
          
          <creation_ts>2023-03-02 06:15:04 +0000</creation_ts>
          <short_desc>Discover checks for updates daily, regardless of the frequency set in the Software Sources dialog.</short_desc>
          <delta_ts>2025-11-15 08:23:40 +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>Notifier</component>
          <version>5.27.1</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>419055</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex">ab</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>alsubbota</cc>
    
    <cc>anael</cc>
    
    <cc>anishjp</cc>
    
    <cc>eliac8</cc>
    
    <cc>fabian</cc>
    
    <cc>franz.trischberger</cc>
    
    <cc>khanich.opensource</cc>
    
    <cc>luca.pedrielli</cc>
    
    <cc>nate</cc>
    
    <cc>p.r.worrall</cc>
    
    <cc>spam_eater</cc>
    
    <cc>tduck</cc>
    
    <cc>torricolas</cc>
    
    <cc>wazhai</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/discover/-/commit/f98a9e3fd6ad44e1ace8ba436918afa918297a2c</cf_commitlink>
          <cf_versionfixedin>6.2.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2213191</commentid>
    <comment_count>0</comment_count>
    <who name="Alex">ab</who>
    <bug_when>2023-03-02 06:15:04 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #419055 +++

SUMMARY
Even when the user sets a lower frequency of automatic updates (e.g. weekly) in the Software Sources dialog, Discover nevertheless checks for updates daily. This means that effectively the user has no control over automatic update frequency.

STEPS TO REPRODUCE
1. In Discover, click on &quot;Sources&quot; -&gt; &quot;Software Sources&quot;. Provide the password if required.
2. In the &quot;Software Sources&quot; dialog that opens, click on &quot;Updates&quot;. Make sure the &quot;Check for updates&quot; checkbox is checked, and choose a frequency other than &quot;Daily&quot; (e.g. &quot;Weekly&quot;) in the corresponding dropdown. Click on &quot;Close&quot;.

OBSERVED RESULT
Update notifications appear in the notifications area multiple times a week, presumably on every startup if updates are available.

EXPECTED RESULT
Update notifications appear at most once a week.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2.1-arch1-1 (64-bit)
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8



ADDITIONAL INFORMATION
SUMMARY
Even when the user sets a lower frequency of automatic updates (e.g. weekly) in the Software Sources dialog, Discover nevertheless checks for updates daily. This means that effectively the user has no control over automatic update frequency.

STEPS TO REPRODUCE
1. In Discover, click on &quot;Sources&quot; -&gt; &quot;Software Sources&quot;. Provide the password if required.
2. In the &quot;Software Sources&quot; dialog that opens, click on &quot;Updates&quot;. Make sure the &quot;Check for updates&quot; checkbox is checked, and choose a frequency other than &quot;Daily&quot; (e.g. &quot;Weekly&quot;) in the corresponding dropdown. Click on &quot;Close&quot;.

OBSERVED RESULT
Update notifications appear in the notifications area multiple times a week.

EXPECTED RESULT
Update notifications appear at most once a week.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.10
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
This is a follow up to bug 401810 (Phabricator patch D17375) and bug 337752. Unfortunately, it appears that the issue wasn&apos;t resolved (at least not on my system).

My analysis shows that Discover&apos;s PackageKitNotifier attempts to check the frequency set in software-properties by running &quot;apt-config dump&quot; and looking for the &quot;Apt::Periodic::Update-Package-Lists&quot; property in its output. However, on my system the property name starts with uppercase &quot;APT&quot; rather than &quot;Apt&quot;, and ends with a semicolon. Therefore PackageKitNotifier fails to find the correct property value, and falls back to the default of a daily check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213288</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2023-03-02 13:37:15 +0000</bug_when>
    <thetext>Confirmed.  The setting seems to have been moved to System Settings -&gt; Software Update

OBSERVED RESULT
For me it&apos;s set to &quot;Weekly&quot;.  
The notifier told me updates were available so I installed them and rebooted, then the notifier came up again within a few hours

EXPECTED RESULT
After installing some updates, the notifier doesn&apos;t come up again until the selected period has expired (maybe an exception should be made for security updates)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2213297</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2023-03-02 14:08:01 +0000</bug_when>
    <thetext>P.S. I&apos;m on KDE Neon User edition, v5.27, with no Snaps or Flatpaks installed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2219400</commentid>
    <comment_count>3</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-31 00:12:06 +0000</bug_when>
    <thetext>What output do you get for &quot;apt-config dump&quot;? Asking specifically for &quot;Apt::Periodic::Update-Package-Lists&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2219441</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2023-03-31 09:19:38 +0000</bug_when>
    <thetext>paul@neon-user:~$ apt-config dump|grep -i Periodic
paul@neon-user:~$ 

i.e. that config item isn&apos;t set</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2219516</commentid>
    <comment_count>5</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2023-03-31 15:53:25 +0000</bug_when>
    <thetext>That&apos;s the setting that Software Sources sets and where Discover looks for it. We cannot follow a setting that doesn&apos;t exist. :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2219578</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Worrall">p.r.worrall</who>
    <bug_when>2023-03-31 22:58:56 +0000</bug_when>
    <thetext>I&apos;m using the  &quot;kcm_updates&quot; KCM to change the value of &quot;Notification Frequency&quot;; that setting isn&apos;t in the Software Sources section of Discover.

The value I set is remembered between invocations, but it does not ask for a password or set &quot;Apt::Periodic::Update-Package-Lists&quot; and it does not seem to affect the frequency of update notifications.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2244260</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey">alsubbota</who>
    <bug_when>2023-08-03 15:38:47 +0000</bug_when>
    <thetext>Can I add here that I have the same bug in Fedora which uses dnf as a package manager instead of apt? Or should I create a new bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2244266</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-08-03 15:59:54 +0000</bug_when>
    <thetext>I think that&apos;s probably the same bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2257002</commentid>
    <comment_count>9</comment_count>
    <who name="Anish">anishjp</who>
    <bug_when>2023-10-05 09:47:25 +0000</bug_when>
    <thetext>Same issue in Fedora - KDE.

Cant even find the option &quot;Check for updates&quot; to uncheck in mine.

Discover 5.27.8
KDE Framework 5.109.0
Qt 5.15.10</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2308873</commentid>
    <comment_count>10</comment_count>
    <who name="Franz Trischberger">franz.trischberger</who>
    <bug_when>2024-04-06 17:53:35 +0000</bug_when>
    <thetext>Same issue here on opensuse tumbleweed with plasma 6.0.3.
I&apos;ve set it to weekly but discover comes up daily.
Previously I had discover deinstalled+blacklisted, update to plasma6 ignored that blacklistingand installed it again.
I always manually updated the system, but wanted to give discover a chance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2309068</commentid>
    <comment_count>11</comment_count>
    <who name="Franz Trischberger">franz.trischberger</who>
    <bug_when>2024-04-07 13:23:58 +0000</bug_when>
    <thetext>https://invent.kde.org/plasma/discover/-/blob/master/notifier/DiscoverNotifier.cpp#L128
if (earliestNextNotificationTime.isValid() &amp;&amp; earliestNextNotificationTime &gt; QDateTime::currentDateTimeUtc()) {
        return false;
    }

Just an idea. In case earliestNextNotificationTime is NOT valid an updat notification is triggered.
Played with python:

&gt;&gt;&gt; from PyQt6.QtCore import QDateTime
&gt;&gt;&gt; c = QDateTime.fromString(&quot;2024,4,7,12,36,49.994&quot;)
&gt;&gt;&gt; c.isValid()
False

I could not figure out in a reasonable amount of time how this whole kconf thing works and how it reads/writes DateTime objects, so this might turn out to be wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2328179</commentid>
    <comment_count>12</comment_count>
    <who name="TomK">spam_eater</who>
    <bug_when>2024-06-15 08:27:21 +0000</bug_when>
    <thetext>This still doesn&apos;t work with KDE 6.0.5 (Fedora if that matters)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2338886</commentid>
    <comment_count>13</comment_count>
    <who name="Khanich">khanich.opensource</who>
    <bug_when>2024-07-21 03:58:27 +0000</bug_when>
    <thetext>Are we talking here about just the SystemTray icon or also about notifications (as in these small windows which pop up)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340539</commentid>
    <comment_count>14</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-07-27 09:40:42 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/886</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340540</commentid>
    <comment_count>15</comment_count>
    <who name="Thomas Duckworth">tduck</who>
    <bug_when>2024-07-27 09:44:52 +0000</bug_when>
    <thetext>(In reply to Khanich from comment #13)
&gt; Are we talking here about just the SystemTray icon or also about
&gt; notifications (as in these small windows which pop up)?

I opened a MR that makes the tray icon follow the notification icon timing, because I am pretty sure that&apos;s what people are complaining about.

Even if not, it is confusing behaviour anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2340644</commentid>
    <comment_count>16</comment_count>
    <who name="Khanich">khanich.opensource</who>
    <bug_when>2024-07-27 17:47:39 +0000</bug_when>
    <thetext>(In reply to Thomas Duckworth from comment #15)
&gt; (In reply to Khanich from comment #13)
&gt; &gt; Are we talking here about just the SystemTray icon or also about
&gt; &gt; notifications (as in these small windows which pop up)?
&gt; 
&gt; I opened a MR that makes the tray icon follow the notification icon timing,
&gt; because I am pretty sure that&apos;s what people are complaining about.
&gt; 
&gt; Even if not, it is confusing behaviour anyway.

That&apos;s why I asked because I would have done this too, if that&apos;s the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2341504</commentid>
    <comment_count>17</comment_count>
    <who name="Aleix Pol">aleixpol</who>
    <bug_when>2024-07-30 22:46:29 +0000</bug_when>
    <thetext>Git commit f98a9e3fd6ad44e1ace8ba436918afa918297a2c by Aleix Pol Gonzalez, on behalf of Thomas Duckworth.
Committed on 30/07/2024 at 22:42.
Pushed by apol into branch &apos;master&apos;.

Only show the tray notifier on next notification time

This makes it follow the behaviour of the updates notification. It will only appear once per the timeframe specified in the KCM.

M  +4    -4    notifier/DiscoverNotifier.cpp
M  +2    -2    notifier/DiscoverNotifier.h
M  +5    -0    notifier/NotifierItem.cpp

https://invent.kde.org/plasma/discover/-/commit/f98a9e3fd6ad44e1ace8ba436918afa918297a2c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468674</commentid>
    <comment_count>18</comment_count>
    <who name="Fabian Vogt">fabian</who>
    <bug_when>2025-11-07 13:08:52 +0000</bug_when>
    <thetext>IMO even when only checking for updates less frequently, if updates have not been installed the tray icon needs to remain visible. Otherwise that leaves the impression that the system is up-to-date.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2468675</commentid>
    <comment_count>19</comment_count>
    <who name="Fabian Vogt">fabian</who>
    <bug_when>2025-11-07 13:25:14 +0000</bug_when>
    <thetext>(In reply to Fabian Vogt from comment #18)
&gt; IMO even when only checking for updates less frequently, if updates have not
&gt; been installed the tray icon needs to remain visible. Otherwise that leaves
&gt; the impression that the system is up-to-date.

Actually, the notifier *always* checks for updates on startup, there&apos;s always a PackageKit get-updates transaction. It just ignores the result in the case that the last notification was too recent.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>