Bug 427340

Summary: Systemd startup: things in autostart don't autostart when custom prefix is set late
Product: [Applications] systemsettings Reporter: Nate Graham <nate>
Component: kcm_autostartAssignee: Nicolas Fella <nicolas.fella>
Status: REPORTED ---    
Severity: normal CC: fuzz, j.straight-kde, katyaberezyaka, kde, kishore96, kyle.devir, nl6720, plasma-bugs, rdieter, tagwerk19, tgnff242
Priority: NOR    
Version: 5.21.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=433223
https://bugs.kde.org/show_bug.cgi?id=433299
https://bugs.kde.org/show_bug.cgi?id=434241
https://bugs.kde.org/show_bug.cgi?id=434242
https://bugs.kde.org/show_bug.cgi?id=434243
https://bugs.kde.org/show_bug.cgi?id=455252
Latest Commit: Version Fixed In:

Description Nate Graham 2020-10-04 20:23:36 UTC
When using Systemd startup,things added to the autostart KCM--whether they are applications or scripts--do not start on login for me.
Comment 1 David Edmundson 2020-10-04 20:26:17 UTC
*** Bug 427342 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2020-10-04 20:31:31 UTC
They do.

But there's an issue with the use of a custom prefix. the generator won't find them.
My hack covers finding the services in a prefix, it doesn't help solve the case of autostart files in a prefix. I kinda hoped I could just make explicit units for all KDE things and then that problem goes away....

I think I could also explicitly re-run the generator after I set the envs. It'd be expanding the hack, but it's only for dev sessions at least.
Comment 3 David Edmundson 2021-02-21 21:32:37 UTC
Could be fixed by: https://github.com/sddm/sddm/pull/1370

(with relevant KDE side changes)
Comment 4 David Edmundson 2021-04-29 16:32:40 UTC
*** Bug 434242 has been marked as a duplicate of this bug. ***
Comment 5 David Edmundson 2021-04-29 16:32:49 UTC
*** Bug 434243 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2021-05-04 03:29:24 UTC
*** Bug 436450 has been marked as a duplicate of this bug. ***
Comment 7 tagwerk19 2021-05-30 09:06:32 UTC
The (In reply to David Edmundson from comment #2)
> But there's an issue with the use of a custom prefix. the generator won't
> find them.
Could this be what is causing:
    https://bugzilla.redhat.com/show_bug.cgi?id=1951580
referring to
    https://github.com/systemd/systemd/issues/18791

I have guest VM (an upgraded to Fedora 34 machine) that doesn't release the mouse pointer. That seems to be a service provided by spice-vdagent and the autostart spice-vdagent.desktop file includes
    X-GNOME-Autostart-Phase=WindowsManager

Strangely a new/clean install of F34 works, just the upgraded one has trouble