<?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>466359</bug_id>
          
          <creation_ts>2023-02-24 16:01:37 +0000</creation_ts>
          <short_desc>since upgrade  to KDE Framework 5.103, kstart5 does not return after starting application</short_desc>
          <delta_ts>2023-03-24 23:01:01 +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>5.103.0</version>
          <rep_platform>Debian testing</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>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erwan David">kde</reporter>
          <assigned_to name="thenujan">sthenujan2002</assigned_to>
          <cc>dap78</cc>
    
    <cc>kde.fossil822</cc>
    
    <cc>kde</cc>
    
    <cc>kdelibs-bugs-null</cc>
    
    <cc>nate</cc>
    
    <cc>nicolas.fella</cc>
    
    <cc>sthenujan2002</cc>
          
          <cf_commitlink>https://invent.kde.org/frameworks/kio/commit/01481fb95ec443988dfbf51116d807359c08dfab</cf_commitlink>
          <cf_versionfixedin>5.105</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2211394</commentid>
    <comment_count>0</comment_count>
    <who name="Erwan David">kde</who>
    <bug_when>2023-02-24 16:01:37 +0000</bug_when>
    <thetext>SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. in a terminal type kstart5 --windowclass konsole konsole
2. a new konsole is started, but the kstart5 command does not return
3. 

OBSERVED RESULT


EXPECTED RESULT
the kstart5 command returns after starting the new konsole

SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-3-amd64 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Worked with kde framework 5.102</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211513</commentid>
    <comment_count>1</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2023-02-24 21:50:56 +0000</bug_when>
    <thetext>Bisected to https://invent.kde.org/frameworks/kio/-/commit/a54bd82b0a88fe2a8afc7477e58211f0e77c99d7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212667</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-02-28 20:15:39 +0000</bug_when>
    <thetext>Oh dear, yeah. Because we now emitResult() only after the process has actually terminated, rather than immediately.

Perhaps we can fix KStart to handle this change better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212668</commentid>
    <comment_count>3</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2023-02-28 20:17:02 +0000</bug_when>
    <thetext>&gt; Perhaps we can fix KStart to handle this change better?

No, we must revert to the original behavior</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212925</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-01 14:50:05 +0000</bug_when>
    <thetext>Ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2216816</commentid>
    <comment_count>5</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2023-03-16 10:23:53 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/1225</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218251</commentid>
    <comment_count>6</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2023-03-24 22:33:41 +0000</bug_when>
    <thetext>Git commit fea052ba369e474a092516a4717556b52ff92e00 by Nicolas Fella, on behalf of Thenujan Sandramohan.
Committed on 24/03/2023 at 22:33.
Pushed by nicolasfella into branch &apos;kf5&apos;.

CommandLauncher: call emitResult() as soon as process has started

This MR makes `emitResult` get called as soon as the process has started instead of when the process has ended. It also changes `emitDelayedError` as a protected member of `KProcessRunner` to make it invokable by `ForkingProcessRunner`. It also removes `processFinished` signal as it&apos;s not used anymore.

M  +0    -2    src/gui/commandlauncherjob.cpp
M  +1    -2    src/gui/kprocessrunner.cpp
M  +1    -6    src/gui/kprocessrunner_p.h

https://invent.kde.org/frameworks/kio/commit/fea052ba369e474a092516a4717556b52ff92e00</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218256</commentid>
    <comment_count>7</comment_count>
    <who name="Nicolas Fella">nicolas.fella</who>
    <bug_when>2023-03-24 23:00:42 +0000</bug_when>
    <thetext>Git commit 01481fb95ec443988dfbf51116d807359c08dfab by Nicolas Fella, on behalf of Thenujan Sandramohan.
Committed on 24/03/2023 at 22:38.
Pushed by nicolasfella into branch &apos;master&apos;.

CommandLauncher: call emitResult() as soon as process has started

This MR makes `emitResult` get called as soon as the process has started instead of when the process has ended. It also changes `emitDelayedError` as a protected member of `KProcessRunner` to make it invokable by `ForkingProcessRunner`. It also removes `processFinished` signal as it&apos;s not used anymore.

M  +0    -2    src/gui/commandlauncherjob.cpp
M  +1    -2    src/gui/kprocessrunner.cpp
M  +1    -6    src/gui/kprocessrunner_p.h

https://invent.kde.org/frameworks/kio/commit/01481fb95ec443988dfbf51116d807359c08dfab</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>