<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<h3>
Tanu Kaskinen pushed to branch master
at <a href="https://gitlab.freedesktop.org/pulseaudio/pulseaudio">PulseAudio / pulseaudio</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/470c210cdc865be52cc2bd42cdb14d5d162f6d50">470c210c</a></strong>
<div>
<span>by Rickie Schroeder</span>
<i>at 2019-10-31T13:42:41Z</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap; margin: 0;">start-pulseaudio-x11: fix KDE version check
Current check wasn't working in case when $DESKTOP_SESSION wasn't set
which happens when session is started without display manager like sddm.
Parsing "plasmashell -v" output should be more reliable and less hacky.
This also changes legacy backticks `...` to modern $(...) as recommended
by shellcheck:
https://github.com/koalaman/shellcheck/wiki/SC2006
Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/751
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#0ee8d1cf8962ad0b923ced86b471994e2fea259c">
src/daemon/start-pulseaudio-x11.in
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="0ee8d1cf8962ad0b923ced86b471994e2fea259c">
<a href="https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/470c210cdc865be52cc2bd42cdb14d5d162f6d50#0ee8d1cf8962ad0b923ced86b471994e2fea259c"><strong>src/daemon/start-pulseaudio-x11.in</strong></a>
<hr>
<table class="code white" style="font-family: monospace; font-size: 90%;" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" id="" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="22" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="22" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">...</td>
<td class="line_content match " style="padding-left: 0.5em; padding-right: 0.5em; color: rgba(0,0,0,0.3);" bgcolor="#fafafa">@@ -22,9 +22,11 @@ if [ x"$DISPLAY" != x ] ; then</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="22" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
22
</td>
<td class="diff-line-num new_line" data-linenumber="22" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
22
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC22" class="line" lang="shell"> @PACTL_BINARY@ load-module module-x11-publish <span class="s2" style="color: #d14;">"display=</span><span class="nv" style="color: #008080;">$DISPLAY</span><span class="s2" style="color: #d14;">"</span> <span class="o" style="font-weight: 600;">></span> /dev/null</span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="23" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
23
</td>
<td class="diff-line-num new_line" data-linenumber="23" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
23
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC23" class="line" lang="shell"> @PACTL_BINARY@ load-module module-x11-cork-request <span class="s2" style="color: #d14;">"display=</span><span class="nv" style="color: #008080;">$DISPLAY</span><span class="s2" style="color: #d14;">"</span> <span class="o" style="font-weight: 600;">></span> /dev/null</span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="24" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
24
</td>
<td class="diff-line-num new_line" data-linenumber="24" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
24
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC24" class="line" lang="shell"></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="25" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="25" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
25
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC25" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># KDE plasma versions older than 5.17.0 use module-device-manager's routing API.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="25" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="26" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
26
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC26" class="line" lang="shell"> <span class="c" style="color: #998; font-style: italic;"># Check for current plasma version and load module if it's necessary.</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="25" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
25
</td>
<td class="diff-line-num new_line" data-linenumber="27" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
27
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC27" class="line" lang="shell"> <span class="k" style="font-weight: 600;">if</span> <span class="o" style="font-weight: 600;">[</span> x<span class="s2" style="color: #d14;">"</span><span class="nv" style="color: #008080;">$KDE_FULL_SESSION</span><span class="s2" style="color: #d14;">"</span> <span class="o" style="font-weight: 600;">=</span> x<span class="s2" style="color: #d14;">"true"</span> <span class="o" style="font-weight: 600;">]</span><span class="p">;</span> <span class="k" style="font-weight: 600;">then</span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="26" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
26
</td>
<td class="diff-line-num new_line old" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC26" class="line" lang="shell"><span class="k" style="font-weight: 600;"> </span><span class="nv" style="color: #008080;">plasmaversion</span><span class="o" style="font-weight: 600;">=</span><span class="sb" style="color: #d14;"><span class="idiff left">`</span></span><span class="nb" style="color: #0086b3;"><span class="idiff">grep</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"X-KDE-PluginInfo-Version"</span></span><span class="idiff"> </span><span class="nv" style="color: #008080;"><span class="idiff">$DESKTOP_SESSION</span></span><span class="idiff">.desktop | </span><span class="nb" style="color: #0086b3;"><span class="idiff">cut</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-d</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"="</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-f2</span></span><span class="idiff"> | </span><span class="nb" style="color: #0086b3;"><span class="idiff">cut</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-d</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"."</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-f1</span></span><span class="idiff">,2 | </span><span class="nb" style="color: #0086b3;"><span class="idiff">tr</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-d</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"."</span></span><span class="sb" style="color: #d14;"><span class="idiff right">`</span></span></span>
</pre>
</td>
</tr>
<tr class="line_holder old" id="" style="line-height: 1.6;">
<td class="diff-line-num old old_line" data-linenumber="27" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
27
</td>
<td class="diff-line-num new_line old" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#f9d7dc">
</td>
<td class="line_content old" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#fbe9eb">
<pre style="margin: 0;">-<span id="LC27" class="line" lang="shell"> <span class="k" style="font-weight: 600;">if</span> <span class="o" style="font-weight: 600;">[</span> <span class="s2" style="color: #d14;"><span class="idiff left">"</span></span><span class="nv" style="color: #008080;"><span class="idiff">$plasmaversion</span></span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-lt</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff right">"517</span>"</span> <span class="o" style="font-weight: 600;">]</span><span class="p">;</span> <span class="k" style="font-weight: 600;">then</span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
28
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC28" class="line" lang="shell"><span class="k" style="font-weight: 600;"> </span><span class="nv" style="color: #008080;">plasmaversion</span><span class="o" style="font-weight: 600;">=</span><span class="s2" style="color: #d14;"><span class="idiff left">"</span></span><span class="si" style="color: #d14;"><span class="idiff">$(</span></span><span class="idiff">plasmashell </span><span class="nt" style="color: #000080;"><span class="idiff">-v</span></span><span class="idiff"> 2>/dev/null | </span><span class="nb" style="color: #0086b3;"><span class="idiff">sed</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-n</span></span><span class="idiff"> </span><span class="s1" style="color: #d14;"><span class="idiff">'s/^plasmashell \([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1*1000000+\2*1000+\3/p'</span></span><span class="idiff"> | </span><span class="nb" style="color: #0086b3;"><span class="idiff">head</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-1</span></span><span class="si" style="color: #d14;"><span class="idiff">)</span></span><span class="s2" style="color: #d14;"><span class="idiff right">"</span></span></span>
</pre>
</td>
</tr>
<tr class="line_holder new" id="" style="line-height: 1.6;">
<td class="diff-line-num new old_line" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
</td>
<td class="diff-line-num new new_line" data-linenumber="29" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#ddfbe6">
29
</td>
<td class="line_content new" style="padding-left: 0.5em; padding-right: 0.5em;" bgcolor="#ecfdf0">
<pre style="margin: 0;">+<span id="LC29" class="line" lang="shell"> <span class="k" style="font-weight: 600;">if</span> <span class="o" style="font-weight: 600;">[</span> <span class="nt" style="color: #000080;"><span class="idiff left">-n</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="nv" style="color: #008080;"><span class="idiff">$plasmaversion</span></span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="idiff"> </span><span class="o" style="font-weight: 600;"><span class="idiff">]</span></span><span class="idiff"> </span><span class="o" style="font-weight: 600;"><span class="idiff">&&</span></span><span class="idiff"> </span><span class="o" style="font-weight: 600;"><span class="idiff">[</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="k" style="font-weight: 600;"><span class="idiff">$((</span></span><span class="idiff">plasmaversion</span><span class="k" style="font-weight: 600;"><span class="idiff">))</span></span><span class="s2" style="color: #d14;"><span class="idiff">"</span></span><span class="idiff"> </span><span class="nt" style="color: #000080;"><span class="idiff">-lt</span></span><span class="idiff"> </span><span class="s2" style="color: #d14;"><span class="idiff right">"5017000</span>"</span> <span class="o" style="font-weight: 600;">]</span><span class="p">;</span> <span class="k" style="font-weight: 600;">then</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="28" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
28
</td>
<td class="diff-line-num new_line" data-linenumber="30" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
30
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC30" class="line" lang="shell"> @PACTL_BINARY@ load-module module-device-manager <span class="s2" style="color: #d14;">"do_routing=1"</span> <span class="o" style="font-weight: 600;">></span> /dev/null</span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="29" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
29
</td>
<td class="diff-line-num new_line" data-linenumber="31" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
31
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC31" class="line" lang="shell"> <span class="k" style="font-weight: 600;">fi</span></span>
</pre>
</td>
</tr>
<tr class="line_holder" id="" style="line-height: 1.6;">
<td class="diff-line-num old_line" data-linenumber="30" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
30
</td>
<td class="diff-line-num new_line" data-linenumber="32" style="width: 35px; color: rgba(0,0,0,0.3); border-right-width: 1px; border-right-color: #f0f0f0; border-right-style: solid; padding: 0 5px;" align="right" bgcolor="#fafafa">
32
</td>
<td class="line_content" style="padding-left: 0.5em; padding-right: 0.5em;">
<pre style="margin: 0;"> <span id="LC32" class="line" lang="shell"><span class="k" style="font-weight: 600;"> fi</span></span>
</pre>
</td>
</tr>
</table>
<br>
</li>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
<a href="https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/470c210cdc865be52cc2bd42cdb14d5d162f6d50">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.freedesktop.org.
If you'd like to receive fewer emails, you can
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.freedesktop.org/pulseaudio/pulseaudio/commit/470c210cdc865be52cc2bd42cdb14d5d162f6d50"}}</script>
</p>
</div>
</body>
</html>