<?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>182186</bug_id>
          
          <creation_ts>2009-01-28 18:26:30 +0000</creation_ts>
          <short_desc>KDEinit regression with X-DBUS-StartupType=Unique</short_desc>
          <delta_ts>2009-01-31 15:54:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kdelibs</product>
          <component>kdeinit</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>162729</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>0</everconfirmed>
          <reporter name="Michal Ziabkowski">mziaber</reporter>
          <assigned_to name="kdelibs bugs">kdelibs-bugs-null</assigned_to>
          
          
          <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>706821</commentid>
    <comment_count>0</comment_count>
    <who name="Michal Ziabkowski">mziaber</who>
    <bug_when>2009-01-28 18:26:30 +0000</bug_when>
    <thetext>Version:            (using KDE 4.2.0)
Compiler:          gcc version 4.1.2 (Gentoo 4.1.2 p1.1) 
OS:                Linux
Installed from:    Gentoo Packages

Steps to reproduce:
1) Open an instance of Konsole, System Settings or another program with X-DBUS-StartupType=Unique
2) Try opening another instance via krunner or a hotkey.

Result:
The program launches, but a &quot;KDEinit could not launch...&quot; error appears.

This used to work as expected in KDE 4.1.96. No error appeared. 

From what I observed, the following conditions have to be met for the bug to manifest itself:
1) The .desktop has X-DBUS-StartupType=Unique
2) X-DBUS-ServiceName is not defined
3) At least one instance needs to be running already
4) The program needs to be run via krunner or a hotkey.

The debug from matchesPendingRequest:
appId= &quot;:1.60&quot; newAppId= &quot;:1.60&quot; pendingAppId= &quot;*.konsole&quot;
appName= &quot;60&quot;

It seems the numeric appId is at fault. It causes the function to return false.

Reverting commit 911168 works around the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>708634</commentid>
    <comment_count>1</comment_count>
    <who name="Michal Ziabkowski">mziaber</who>
    <bug_when>2009-01-31 15:54:25 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 162729 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>