systemd-xdg-autostart-generator-ed service does not correctly run script that detaches a subprocess

Bug #2056665 reported by Yann Salmon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
New
Undecided
Unassigned

Bug Description

I have a script that basically does

```
#! /usr/bin/bash
sleep 5
thunderbird &
```

and an appropriate desktop file in .~/.config/autostart to run it.

Since upgrading from Plasma 5.24 to 5.27 (from the backports PPA), this no longer works. The script is run (added logging, eg. with systemd-cat, prove it) but Thunderbird does not appear. However, it does work if I change it to the following.

```
#! /usr/bin/bash
sleep 5
thunderbird
```

So I suspect this is related to how systemd-xdg-autostart-generator runs the associated service. I tried various combinations like ``kstart5 thunderbird & disown``, to no avail.

Note this script is an MWE example ; my actual script is more convoluted and needs subprocess detachment to work properly.

Plasma 5.24 did not exhibit this behaviour. I do not know if it was using systemd-xdg-autostart-generator to manage autostart.

Current systemd version is 249.11-0ubuntu3.12, which is too old to report upstream about.

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-100-generic (64-bit)
Graphics Platform: X11

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/2056665/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Yann Salmon (yannsalmon)
affects: ubuntu → systemd (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.