<?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>471548</bug_id>
          
          <creation_ts>2023-06-28 21:04:45 +0000</creation_ts>
          <short_desc>Auto-Update for flatpaks via Discover appears to be non-functional</short_desc>
          <delta_ts>2024-11-06 22:11:39 +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>Flatpak Backend</component>
          <version>5.27.6</version>
          <rep_platform>openSUSE</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=447245</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shawn W Dunn">sfalken</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>izerpizer</cc>
    
    <cc>jgqehj55</cc>
    
    <cc>jgrulich</cc>
    
    <cc>johnmaverick74</cc>
    
    <cc>kde</cc>
    
    <cc>kilgore.trout</cc>
    
    <cc>nate</cc>
    
    <cc>null</cc>
    
    <cc>robert</cc>
    
    <cc>supgesu</cc>
    
    <cc>tim</cc>
    
    <cc>travier</cc>
    
    <cc>viniciush.dev</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/discover/-/commit/78cce3a269bbbe3f7b41755a20561426e68f8559</cf_commitlink>
          <cf_versionfixedin>6.2.4</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2238640</commentid>
    <comment_count>0</comment_count>
      <attachid>159962</attachid>
    <who name="Shawn W Dunn">sfalken</who>
    <bug_when>2023-06-28 21:04:45 +0000</bug_when>
    <thetext>Created attachment 159962
logs of manual run of plasma-discover-update via journalctl

SUMMARY
On openSUSE Kalpa, we only use Discover to handle the installation and management of flatpaks and fwupd, setting Updates to run Automatically in the &quot;Software Update&quot; kcm appears to work fine for fwupd, but is non-functional for flatpak/flathub

STEPS TO REPRODUCE
1. Enable flathub repository
2. Install some flatpaks
3. Set to automatically update software daily in the &quot;Software Update&quot; kcm

OBSERVED RESULT
Flatpaks do not get updated automatically.   The Notification that updates are available works just fine, but there is no automatic download and installation of them.

EXPECTED RESULT
Discover checks for updates of flatpaks from enabled repositories, downloads, and installs them, on a daily schedule

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Kalpa 20230625 (Linux 6.3.9-1-default)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Running `plasma-discover-update` manually in a terminal produces the expected output.  Please see attached logs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2244149</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-08-02 20:49:31 +0000</bug_when>
    <thetext>*** Bug 472908 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2346722</commentid>
    <comment_count>2</comment_count>
    <who name="Vinícius">viniciush.dev</who>
    <bug_when>2024-08-19 13:30:41 +0000</bug_when>
    <thetext>it&apos;s the same issue here too but plasma-discover-update don&apos;t update anything 

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700U with Radeon Graphics
Memory: 7,1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82MF
System Version: IdeaPad 3 15ALC6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353097</commentid>
    <comment_count>3</comment_count>
    <who name="Unknown">null</who>
    <bug_when>2024-09-11 16:44:40 +0000</bug_when>
    <thetext>I also have this same issue with multiple clients who use fedora, having wanted to move away from windows.

I have downloaded and install enabled, but they don&apos;t actually download and install, only notify there is an update. Many tech illiterate people and those that don&apos;t understand updates won&apos;t even know about doing updates, especially if they are used to windows doing updates automatically for them.

This could result in security updates and bug fixes being missed out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2353145</commentid>
    <comment_count>4</comment_count>
    <who name="Vinícius">viniciush.dev</who>
    <bug_when>2024-09-11 22:12:22 +0000</bug_when>
    <thetext>(In reply to Jack from comment #3)
&gt; I also have this same issue with multiple clients who use fedora, having
&gt; wanted to move away from windows.
&gt; 
&gt; I have downloaded and install enabled, but they don&apos;t actually download and
&gt; install, only notify there is an update. Many tech illiterate people and
&gt; those that don&apos;t understand updates won&apos;t even know about doing updates,
&gt; especially if they are used to windows doing updates automatically for them.
&gt; 
&gt; This could result in security updates and bug fixes being missed out.

as a workaround for your issue you can make a systemd script to automatically update the flatpaks, it&apos;s not ideal yes, but better than missing security updates before this get fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2354825</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-09-16 14:29:53 +0000</bug_when>
    <thetext>*** Bug 447245 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2369087</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2024-10-25 09:32:39 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/960</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2371984</commentid>
    <comment_count>7</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2024-11-05 14:11:02 +0000</bug_when>
    <thetext>Git commit c772b13638ce1abfb6de7ba735cbd42e3cac2d35 by Harald Sitter.
Committed on 05/11/2024 at 13:55.
Pushed by sitter into branch &apos;master&apos;.

update: disable quitting on eventloop locker

KNS (for instance) uses KJobs and KJobs have eventloop lockers and those
lockers cause the application to quit when the last locker disappears
(i.e. job finishes). this is before we have finished our work so the
updater ended up broken.

M  +5    -0    update/main.cpp

https://invent.kde.org/plasma/discover/-/commit/c772b13638ce1abfb6de7ba735cbd42e3cac2d35</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2371990</commentid>
    <comment_count>8</comment_count>
    <who name="Harald Sitter">sitter</who>
    <bug_when>2024-11-05 14:25:11 +0000</bug_when>
    <thetext>Git commit 78cce3a269bbbe3f7b41755a20561426e68f8559 by Harald Sitter.
Committed on 05/11/2024 at 14:11.
Pushed by sitter into branch &apos;Plasma/6.2&apos;.

update: disable quitting on eventloop locker

KNS (for instance) uses KJobs and KJobs have eventloop lockers and those
lockers cause the application to quit when the last locker disappears
(i.e. job finishes). this is before we have finished our work so the
updater ended up broken.


(cherry picked from commit c772b13638ce1abfb6de7ba735cbd42e3cac2d35)

Co-authored-by: Harald Sitter &lt;sitter@kde.org&gt;

M  +5    -0    update/main.cpp

https://invent.kde.org/plasma/discover/-/commit/78cce3a269bbbe3f7b41755a20561426e68f8559</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372293</commentid>
    <comment_count>9</comment_count>
    <who name="John">johnmaverick74</who>
    <bug_when>2024-11-06 16:00:38 +0000</bug_when>
    <thetext>(In reply to Harald Sitter from comment #8)
&gt; Git commit 78cce3a269bbbe3f7b41755a20561426e68f8559 by Harald Sitter.
&gt; Committed on 05/11/2024 at 14:11.
&gt; Pushed by sitter into branch &apos;Plasma/6.2&apos;.
&gt; 
&gt; update: disable quitting on eventloop locker

Any idea if this will also fix (or, at least, is related to) bug 447245 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2372425</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-06 22:11:39 +0000</bug_when>
    <thetext>The part of that bug that was about Flatpaks at least, yeah.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>159962</attachid>
            <date>2023-06-28 21:04:45 +0000</date>
            <delta_ts>2023-06-28 21:04:45 +0000</delta_ts>
            <desc>logs of manual run of plasma-discover-update via journalctl</desc>
            <filename>output_plasma-discover-update</filename>
            <type>text/plain</type>
            <size>2422</size>
            <attacher name="Shawn W Dunn">sfalken</attacher>
            
              <data encoding="base64">SnVuIDI4IDEzOjQ2OjEzIG11c3RhbmcgZGJ1cy1kYWVtb25bMTE3OV06IFtzeXN0ZW1dIEFjdGl2
YXRpbmcgdmlhIHN5c3RlbWQ6IHNlcnZpY2UgbmFtZT0nb3JnLmZyZWVkZXNrdG9wLmZ3dXBkJyB1
bml0PSdmd3VwZC5zZXJ2aWNlJyByZXF1ZXN0ZWQgYnkgJzoxLjYwMzgnICh1aWQ9MTAwMCBwaWQ9
MTI3NDcgY29tbT0icGxhc21hLWRpc2NvdmVyLXVwZGF0ZSIgbGFiZWw9InVuY29uZmluZWRfdTp1
bmNvbmZpbmVkX3I6dW5jb25maW5lZF90OnMwLXMwOmMwLmMxMDIzIikKSnVuIDI4IDEzOjQ2OjE0
IG11c3RhbmcgcGxhc21hLWRpc2NvdmVyLXVwZGF0ZVsxMjc0N106IGxpYm9zdHJlZSBwdWxsIGZy
b20gJ2ZsYXRodWInIGZvciBhcHBzdHJlYW0yL3g4Nl82NCBjb21wbGV0ZQpKdW4gMjggMTM6NDY6
MTQgbXVzdGFuZyBwbGFzbWEtZGlzY292ZXItdXBkYXRlWzEyNzQ3XTogdXNlcjogUHVsbGVkIGFw
cHN0cmVhbTIveDg2XzY0IGZyb20gZmxhdGh1YgpK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