Bug 427340 - Systemd startup: things in autostart don't autostart when custom prefix is set late
Summary: Systemd startup: things in autostart don't autostart when custom prefix is se...
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: 5.21.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords:
: 427342 434242 434243 436450 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-04 20:23 UTC by Nate Graham
Modified: 2022-06-14 18:12 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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