<?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>469139</bug_id>
          
          <creation_ts>2023-04-29 13:06:19 +0000</creation_ts>
          <short_desc>Kickoff doesn&apos;t start Snap packages at the first time [Kubuntu 23.04]</short_desc>
          <delta_ts>2024-11-14 19:27:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Application Launcher (Kickoff) widget</component>
          <version>5.27.4</version>
          <rep_platform>Kubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Enrico">enricobe</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>kdedev</cc>
    
    <cc>megteheted_tohotom</cc>
    
    <cc>mikel5764</cc>
    
    <cc>nate</cc>
    
    <cc>nicolas.fella</cc>
    
    <cc>noahadvs</cc>
    
    <cc>sgmoore</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2226699</commentid>
    <comment_count>0</comment_count>
    <who name="Enrico">enricobe</who>
    <bug_when>2023-04-29 13:06:19 +0000</bug_when>
    <thetext>SUMMARY
***
Hello,
very often kickoff can&apos;t start snap packages when I launch it from the menu. The first time I launch the app it fails, then it works fine

I report this bug against kickoff because I&apos;ve tested launching the same Snaps from 1) the icon pinned to the panel 2) konsole (eg. /var/lib/snapd/desktop/applications/telegram-desktop_telegram-desktop.desktop that should be the same file kickoff execute) and it works.

***


STEPS TO REPRODUCE
1. Boot the system
2. Open kickoff (Meta Key)
3. Search for a snap with the keyboard (tested with Audacity, Thunderbird, Telegram Desktop)
4. Press Enter to start the app

OBSERVED RESULT
The app fails to start. It TRIES to start but then it closes.
I say &quot;it tries to start&quot; because if I launch Thunderbird I can see the rolling circle on the panel-pinned icon, but then it closes.

After failing the first launch, I can launch it again and again with no problems.

EXPECTED RESULT
Should start also the first time.


Let me know if I can provide some additional log. I tried to start the .desktop from konsole to get some logs (as it seems the file executed by KickOff) but it always starts with no problems. Kikoff fails the first time.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-20-generic (64-bit)
Graphics Platform: X11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227411</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-05-02 16:05:34 +0000</bug_when>
    <thetext>Can you do this?

1. Open a terminal window
2. Run `journalctl --follow --user --unit=plasma-plasmashell.service&apos;
3. Reproduce the issue
4. Paste the text that appeared in the terminal window after the app first crashed

Does the same issue also happen when you launch the app from KRunner (the search field that appears when you type Alt+space)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227434</commentid>
    <comment_count>2</comment_count>
    <who name="Enrico">enricobe</who>
    <bug_when>2023-05-02 16:41:53 +0000</bug_when>
    <thetext>Hello Nate,
the journalctl returns nothing when the snap &quot;crashes&quot;

I can see some of this warnings, but they are shown when I press the meta-key and not when I type the name, press ENTER and see the snap to close.

mag 02 18:37:48 enrico-kubuntu plasmashell[2348]: file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/ApplicationsPage.qml:178: TypeError: Cannot read property &apos;forceActiveFocus&apos; of null
mag 02 18:37:49 enrico-kubuntu plasmashell[2348]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property &quot;verticalAlignment&quot;
mag 02 18:38:16 enrico-kubuntu plasmashell[2348]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property &quot;verticalAlignment&quot;
mag 02 18:38:28 enrico-kubuntu plasmashell[2348]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property &quot;verticalAlignment&quot;
mag 02 18:38:28 enrico-kubuntu plasmashell[2348]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property &quot;verticalAlignment

from Krunner I get the same result. The first time the snap crashes, then it starts from the second time</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227437</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-05-02 16:48:42 +0000</bug_when>
    <thetext>Thanks.

Does the issue reproduce if you launch the app with `kstart5 &quot;[command in the desktop file&apos;s Exec= line]&quot;`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2227510</commentid>
    <comment_count>4</comment_count>
    <who name="Enrico">enricobe</who>
    <bug_when>2023-05-02 18:14:56 +0000</bug_when>
    <thetext>Hello, it seems to work fine.

The Exec line is pretty complicated. Eg:
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/gimp_gimp.desktop /snap/bin/gimp %U

Is it ok If I&apos;ve run the following command?
kstart5 env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/gimp_gimp.desktop /snap/bin/gimp %U

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2228174</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-05-05 09:26:04 +0000</bug_when>
    <thetext>Ok, thanks. I&apos;m CCing some people who might know more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2329742</commentid>
    <comment_count>6</comment_count>
    <who name="">megteheted_tohotom</who>
    <bug_when>2024-06-20 17:05:41 +0000</bug_when>
    <thetext>This is still present in Kubuntu 24.04

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.8.0-35-generic (64-bit)
Graphics Platform: X11
Processors: 14 × Intel® Core™ Ultra 7 155U
Memory: 30,9 GiB of RAM
Graphics Processor: Mesa Intel® Graphics</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2348883</commentid>
    <comment_count>7</comment_count>
    <who name="TraceyC">kdedev</who>
    <bug_when>2024-08-27 01:19:40 +0000</bug_when>
    <thetext>For what it&apos;s worth, I am not able to reproduce this on Kubuntu 24.04, up to date.
I&apos;ll leave this open in case someone else can reproduce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374435</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-14 18:05:58 +0000</bug_when>
    <thetext>Enrico, can you still reproduce it on Kubuntu 24.04 — or even better Kubuntu 24.10?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374471</commentid>
    <comment_count>9</comment_count>
    <who name="Enrico">enricobe</who>
    <bug_when>2024-11-14 19:13:08 +0000</bug_when>
    <thetext>(In reply to Nate Graham from comment #8)
&gt; Enrico, can you still reproduce it on Kubuntu 24.04 — or even better Kubuntu
&gt; 24.10?

Hello, I&apos;ve been using Kubuntu 24.10 for the last 3 month (from the first Plasma 6 daily ISO) and I have not had this issue anymore. It seems solved</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2374483</commentid>
    <comment_count>10</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-14 19:27:33 +0000</bug_when>
    <thetext>Excellent news!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>