<div dir="ltr">Hi Max,<div><br></div><div>if you're using Plasma 5.11, then you don't need to look into the<span style="font-size:12.8px"> "plasma-workspace/startkde/</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">waitforname" folder, because 5.11 has it. </span><span style="font-size:12.8px">So the notifications should be delayed on your system already.</span><span style="font-size:12.8px"> But of course you can still take a look and check the patch out, which added it [1], because maybe you find a clue why it doesn't work in your setup.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">There is also the folder "$HOME/.config/plasma-workspace/env", whose scripts gets executed as well on session start, but late in the process to my knowledge. So it might be an idea to put your notification script there.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regarding the logout/shutdown: we are talking about a single desktop PC with multiple users being logged in at the same time and one of them in his currenctly active session requests a shutdown, right? The user also has the right to shutdown while other users are logged in, right? First you didn't specify where you hook into at the moment to execute your logout tasks. logind provides the D-Bus signal PrepareForShutdown, so maybe try to hook into this if you don't do it already. Also two years ago there was a change to systemd's behavior in killing processes directly [2], so maybe try to reverse this behavior with the respective flag. I assume a properly configured system should have no problem with this though.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Also consider using systemd user services instead of putting scripts in "</span><span style="font-size:12.8px">/etc/X11/Xsession.d" </span><span style="font-size:12.8px">[3]</span><span style="font-size:12.8px">.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Cheers</span></div><div><span style="font-size:12.8px">Roman</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">[1] </span><span style="font-size:12.8px"><a href="https://phabricator.kde.org/D5012">https://phabricator.kde.org/D5012</a></span></div><div><span style="font-size:12.8px">[2] <a href="https://www.golem.de/news/aufraeumen-von-prozessen-beim-logout-systemd-neuerung-sorgt-fuer-nutzerkontroversen-1605-121176.html">https://www.golem.de/news/aufraeumen-von-prozessen-beim-logout-systemd-neuerung-sorgt-fuer-nutzerkontroversen-1605-121176.html</a></span></div><div><span style="font-size:12.8px">[3] <a href="https://superuser.com/questions/1037466/how-to-start-a-systemd-service-after-user-login-and-stop-it-before-user-logout">https://superuser.com/questions/1037466/how-to-start-a-systemd-service-after-user-login-and-stop-it-before-user-logout</a></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 15, 2018 at 5:58 PM, Max Harmathy <span dir="ltr"><<a href="mailto:max.harmathy@muenchen.de" target="_blank">max.harmathy@muenchen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Am 15.01.2018 15:29, schrieb David Edmundson:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    org.freedesktop.Notifications. However on our development release those<br>
    messages get displayed as windows instead of the usual bubbles. It seems<br>
    that the notification handling is not ready when the autostarts are running.<br>
<br>
There is a fix for this in Plasma 5.10 onwards.<br>
Or you can backport the "plasma-workspace/startkde/wai<wbr>tforname"  folder<br>
<br>
Make sure any Dbus calls are sent asyncronously, otherwise you'll block your startup.<br>
<br>
<br>
</blockquote>
<br></div></div>
Thank you David for your quick reply!<br>
<br>
We are currently using plasma 5.11 from bionic (Ubuntu 18.04).<br>
I will have a look into "plasma-workspace/startkde/wai<wbr>tforname".<br>
<br>
<br>
As for the logind problem: I can reproduce this with a current kde-neon:<br>
* log in with two local users<br>
* one user logs out by selecting "Reboot"<br>
* both sessions get killed instantly<br>
<br>
<br>
-- <br>
Max Harmathy<br>
IT@M - Dienstleister für Informations- und Telekommunikationstechnik<br>
der Landeshauptstadt München<br>
<br>
Geschäftsbereich Werkzeuge und Infrastruktur<br>
Servicebereich Städtische Arbeitsplätze<br>
Serviceteam LiMux-Arbeitsplatz I23<br>
<br>
Agnes-Pockels-Bogen 21, 80992 München<br>
<br>
Tel.: <a href="tel:%2B49%2089%20233-782223" value="+4989233782223" target="_blank">+49 89 233-782223</a><br>
E-Mail: <a href="mailto:max.harmathy@muenchen.de" target="_blank">max.harmathy@muenchen.de</a><br>
<br>
******************************<wbr>******************************<wbr>********************<br>
Diese E-Mail wurde von einem LiMux-Arbeitsplatz aus versandt.<br>
******************************<wbr>******************************<wbr>********************<br>
Elektronische Kommunikation mit der Landeshauptstadt München siehe: <a href="http://www.muenchen.de/ekomm" rel="noreferrer" target="_blank">http://www.muenchen.de/ekomm</a><br>
<br>
Bitte denken Sie an die Umwelt, bevor Sie diese E-Mail ausdrucken. Pro Blatt sparen Sie durchschnittlich 15g Holz, 260ml Wasser, 0,05kWh Strom und 5g CO2.<br>
</blockquote></div><br></div>