<?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>520624</bug_id>
          
          <creation_ts>2026-05-25 06:33:27 +0000</creation_ts>
          <short_desc>Wrong startup app id when &quot;run in terminal&quot; is checked</short_desc>
          <delta_ts>2026-05-29 11:08:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>frameworks-kio</product>
          <component>general</component>
          <version>6.24.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>459986</dup_id>
          
          <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="Kai Uwe Broulik">kde</reporter>
          <assigned_to name="KIO Bugs">kio-bugs-null</assigned_to>
          <cc>akselmo</cc>
    
    <cc>kdedev</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nicolas.fella</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>2518145</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Uwe Broulik">kde</who>
    <bug_when>2026-05-25 06:33:27 +0000</bug_when>
    <thetext>DESCRIPTION
When a desktop file specifies the service be run in a terminal, DesktopExecParser rewrites the exec line to launch Konsole (or whatever TerminalApplication) instead of the actual program. However, the startup app ID is still the original service, so there is a mismatch and the bouncing cursor does not go away when Konsole launched.

STEPS TO REPRODUCE
1. Add a service using kmenuedit and set &quot;Run in terminal&quot; (or find one which does)
2. Launch it

OBSERVED RESULT
The bouncing cursor stays until it times out

EXPECTED RESULT
The bouncing cursor goes away as soon as the terminal app has launched

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a terminal window):
KDE Plasma Version: 6.7 Beta
KDE Frameworks Version: 6.24
Qt Version: 6.11.1

ADDITIONAL INFORMATION
The app still seems to get a proper xdg activation token (at least on low focus stealing prevention) so the window does come to the front properly at least</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518208</commentid>
    <comment_count>1</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2026-05-25 12:39:58 +0000</bug_when>
    <thetext>Can confirm. This might be related to the --desktopfile flag for konsole not working. --desktopfile comes from kcoreaddons and kaboutdata

Operating System: KDE Linux 2026-05-25
KDE Plasma Version: 6.7.80
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.9-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2518985</commentid>
    <comment_count>2</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2026-05-28 14:36:24 +0000</bug_when>
    <thetext>I think on wayland we should just add the &quot;asn&quot; value always as the desktopFileName value, if its empty. This seems to get rid of the startup bouncing effect getting stuck.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519152</commentid>
    <comment_count>3</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2026-05-29 10:24:28 +0000</bug_when>
    <thetext>What&apos;s the behaviour we actually want? Do we want Konsole to pretend it&apos;s the other app (via --desktopfile), or consistently use konsole&apos;s appid?

The first option could work for Konsole (if we fix --desktopfile), but I don&apos;t think it&apos;s feasible for arbitrary terminal apps</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519156</commentid>
    <comment_count>4</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2026-05-29 10:57:54 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 459986 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2519160</commentid>
    <comment_count>5</comment_count>
    <who name="Akseli Lahtinen">akselmo</who>
    <bug_when>2026-05-29 11:08:56 +0000</bug_when>
    <thetext>(In reply to Nicolas Fella from comment #3)
&gt; What&apos;s the behaviour we actually want? Do we want Konsole to pretend it&apos;s
&gt; the other app (via --desktopfile), or consistently use konsole&apos;s appid?
&gt; 
&gt; The first option could work for Konsole (if we fix --desktopfile), but I
&gt; don&apos;t think it&apos;s feasible for arbitrary terminal apps

I would expect --desktopfile be the one that works.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>