<?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>352251</bug_id>
          
          <creation_ts>2015-09-04 04:18:19 +0000</creation_ts>
          <short_desc>[PATCH] Splash screen is shown too long (30+ seconds) during startup</short_desc>
          <delta_ts>2015-10-14 16:26:04 +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>general</component>
          <version>5.4.0</version>
          <rep_platform>Arch Linux</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="John Lindgren">john</reporter>
          <assigned_to name="David Edmundson">kde</assigned_to>
          <cc>bshah</cc>
    
    <cc>mklapetek</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink>http://commits.kde.org/plasma-workspace/f949f161a77114203d0489b2020011be019b47d0</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>1541640</commentid>
    <comment_count>0</comment_count>
    <who name="John Lindgren">john</who>
    <bug_when>2015-09-04 04:18:19 +0000</bug_when>
    <thetext>The splash screen is shown too long (about 32 seconds) while starting KDE.  If I edit the startkde script to disable the splash screen, then the KDE desktop appears and is usable in about 7 seconds.

Please let me know what more information you need to debug this.  I would try to figure out what the splash screen is waiting for, but I don&apos;t know where to start since there is very little information displayed (only the KDE symbol and a progress bar).  I recall that back in KDE 3.x the splash screen would display pulsing icons as different components were loaded--maybe it would be a good idea to bring back this feature.

Reproducible: Always

Steps to Reproduce:
1. Create a clean user profile.
2. Log in to an xterm session.
3. Run startkde.

Actual Results:  
Splash screen is displayed for ~32 seconds.

Expected Results:  
Splash screen should disappear once KDE is started.

This seems to be a regression in KDE 5.4; I don&apos;t recall it occurring in 5.3 or earlier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541781</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Klapetek">mklapetek</who>
    <bug_when>2015-09-04 16:17:34 +0000</bug_when>
    <thetext>Thanks for the report

&gt; I recall that back in KDE 3.x the splash screen would display pulsing icons as different components were loaded--maybe it would be a good idea to bring back this feature.

Fwiw, that wouldn&apos;t tell much anyway :)

Is there any output on the xterm? Is there something related perhaps in syslog/~/.xsession_errors (look for ksmserver/ksplashqml)?

Could you perhaps edit the startkde script and add running bustle-pcap somewhere after the dbus session is created and then post the output? That would show the dbus communication with ksplash and would help pinpoint where the bug is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541883</commentid>
    <comment_count>2</comment_count>
      <attachid>94407</attachid>
    <who name="John Lindgren">john</who>
    <bug_when>2015-09-05 03:01:48 +0000</bug_when>
    <thetext>Created attachment 94407
Start D-Bus sooner

Well ... I solved this by accident while I was trying to get bustle working.  Apparently startkde needs to start the D-Bus session sooner for the splash screen to work properly.  See attached patch.  With this fix, the progress bar in the splash screen now moves along pretty quickly (before, it was stuck at zero for the full 30 seconds), and the splash screen disappears after a few seconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1541884</commentid>
    <comment_count>3</comment_count>
    <who name="John Lindgren">john</who>
    <bug_when>2015-09-05 03:02:44 +0000</bug_when>
    <thetext>No longer NEEDSINFO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542069</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Klapetek">mklapetek</who>
    <bug_when>2015-09-05 19:13:22 +0000</bug_when>
    <thetext>Thanks, good stuff. Please post the patch to git.reviewboard.kde.org - review group plasma.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542233</commentid>
    <comment_count>5</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2015-09-06 18:49:19 +0000</bug_when>
    <thetext>Patch definitely makes sense; ksplash was ported to use DBus in the 5.x transition, this wasn&apos;t updated.

I&apos;m curious why we need it at all though; this was a last resort check if something went wrong; from the DCOP-&gt;DBus transition at the start of Plasma 4. 

I ask because for the startplasma script that&apos;s wayland based this&apos;ll be too late as kwin starts first What DisplayManager do you use?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1542248</commentid>
    <comment_count>6</comment_count>
      <attachid>94433</attachid>
    <who name="John Lindgren">john</who>
    <bug_when>2015-09-06 19:20:38 +0000</bug_when>
    <thetext>Created attachment 94433
Another solution

It is a home-baked display manager, which is currently set up to log in to a very minimal environment for testing purposes--only PAM authenticated and then an xterm started.  So in this case there is no D-Bus session active before running startkde.

I have found another way to solve this, which is to remove the dbus-launch section entirely from the startkde script.  It appears that--contrary to the comment in the script--D-Bus autolaunch does work correctly.  Only, it does not export DBUS_SESSION_BUS_ADDRESS to the script environment.  So the simplistic test in the script (test -z &quot;$DBUS_SESSION_BUS_ADDRESS&quot;) fails, and another D-Bus session is started.  Therefore ksplashqml and ksmserver end up trying to talk on different D-Bus sessions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1550399</commentid>
    <comment_count>7</comment_count>
    <who name="David Edmundson">kde</who>
    <bug_when>2015-10-14 16:26:04 +0000</bug_when>
    <thetext>Git commit f949f161a77114203d0489b2020011be019b47d0 by David Edmundson.
Committed on 14/10/2015 at 16:25.
Pushed by davidedmundson into branch &apos;master&apos;.

Don&apos;t assume dbus-launch autolaunch is still broken

1) it&apos;s not broken, that comment is ancient

2) the test is bust. DBus path can also be stored as an x property.

Before this patch the situation is worse as potentially we risk
launching two dbus daemons for the same session.
REVIEW: 125637

M  +0    -4    startkde/startkde.cmake
M  +0    -4    startkde/startplasmacompositor.cmake

http://commits.kde.org/plasma-workspace/f949f161a77114203d0489b2020011be019b47d0</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94407</attachid>
            <date>2015-09-05 03:01:48 +0000</date>
            <delta_ts>2015-09-05 03:01:48 +0000</delta_ts>
            <desc>Start D-Bus sooner</desc>
            <filename>startkde.diff</filename>
            <type>text/plain</type>
            <size>1471</size>
            <attacher name="John Lindgren">john</attacher>
            
              <data encoding="base64">LS0tIC9iaW4vc3RhcnRrZGUuMAkyMDE1LTA5LTAzIDIzOjQ4OjA3LjIxMDMyNTg5MSAtMDQwMAor
KysgL2Jpbi9zdGFydGtkZQkyMDE1LTA5LTA0IDIyOjQ5OjQ1LjAxMzc2MTU0NSAtMDQwMApAQCAt
MjksNiArMjksMjAgQEAKICAgcWRidXM9cWRidXMKIGZpCiAKKyMgTWFrZSBzdXJlIHRoYXQgRC1C
dXMgaXMgcnVubmluZworIyBELUJ1cyBhdXRvbGF1bmNoIGlzIGJyb2tlbgoraWYgdGVzdCAteiAi
JERCVVNfU0VTU0lPTl9CVVNfQUREUkVTUyIgOyB0aGVuCisgICAgZXZhbCBgZGJ1cy1sYXVuY2gg
LS1zaC1zeW50YXggLS1leGl0LXdpdGgtc2Vzc2lvbmAKK2ZpCitpZiAkcWRidXMgPi9kZXYvbnVs
bCAyPi9kZXYvbnVsbDsgdGhlbgorICAgIDogIyBvaworZWxzZQorICAgIGVjaG8gJ3N0YXJ0a2Rl
OiBDb3VsZCBub3Qgc3RhcnQgRC1CdXMuIENhbiB5b3UgY2FsbCBxZGJ1cz8nICAxPiYyCisgICAg
dGVzdCAtbiAiJGtzcGxhc2hfcGlkIiAmJiBraWxsICIka3NwbGFzaF9waWQiIDI+L2Rldi9udWxs
CisgICAgeG1lc3NhZ2UgLWdlb21ldHJ5IDUw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IGZ1bGwgS0RFIHJ1bm5pbmcpLiBUaGUgS0RFX0ZVTExfU0VT
U0lPTiBwcm9wZXJ0eSBjYW4gYmUgZGV0ZWN0ZWQgYnkKICMgYW55IFggY2xpZW50IGNvbm5lY3Rl
ZCB0byB0aGUgc2FtZSBYIHNlc3Npb24sIGV2ZW4gaWYgbm90IGxhdW5jaGVkCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>94433</attachid>
            <date>2015-09-06 19:20:38 +0000</date>
            <delta_ts>2015-09-06 19:20:38 +0000</delta_ts>
            <desc>Another solution</desc>
            <filename>startkde-nodbus.diff</filename>
            <type>text/plain</type>
            <size>852</size>
            <attacher name="John Lindgren">john</attacher>
            
              <data encoding="base64">LS0tIC9iaW4vc3RhcnRrZGUuMAkyMDE1LTA5LTAzIDIzOjQ4OjA3LjIxMDMyNTg5MSAtMDQwMAor
KysgL2Jpbi9zdGFydGtkZS1ub2RidXMJMjAxNS0wOS0wNiAxNToxMjoxMi45ODQ0Mzg4NTggLTA0
MDAKQEAgLTI4MiwyMSArMjgyLDYgQEAKIGZpCiBleHBvcnQgWERHX0RBVEFfRElSUwogCi0jIE1h
a2Ugc3VyZSB0aGF0IEQtQnVzIGlzIHJ1bm5pbmcKLSMgRC1CdXMgYXV0b2xhdW5jaCBpcyBicm9r
ZW4KLWlmIHRlc3QgLXogIiREQlVTX1NFU1NJT05fQlVTX0FERFJFU1MiIDsgdGhlbgotICAgIGV2
YWwgYGRidXMtbGF1bmNoIC0tc2gtc3ludGF4IC0tZXhpdC13aXRoLXNlc3Npb25gCi1maQotaWYg
JHFkYnVzID4vZGV2L251bGwgMj4vZGV2L251bGw7IHRoZW4KLSAgICA6ICMgb2sKLWVsc2UKLSAg
ICBlY2hvICdzdGFydGtkZTogQ291bGQgbm90IHN0YXJ0IEQtQnVzLiBDYW4geW91IGNhbGwgcWRi
dXM/JyAgMT4mMgotICAgIHRlc3QgLW4gIiRrc3BsYX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