Bug 435947 - Autostart settings don't apply properly with newer systemd
Summary: Autostart settings don't apply properly with newer systemd
Status: RESOLVED DUPLICATE of bug 433299
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 05:20 UTC by Alex
Modified: 2021-04-22 02:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Generated .desktop file (3.10 KB, text/plain)
2021-04-20 16:12 UTC, Alex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2021-04-20 05:20:25 UTC
I encounter this issue in Fedora 34 Beta, but not in KDE Neon Unstable. Someone else has reported that this issue occurs on openSUSE Tumbleweed. I have been told that this is due to those distros shipping a newer version of systemd than Neon does.

Looking through journalctl /usr/bin/plasmashell, there is this line:

kf.kio.gui: Failed to register new cgroup: "app-autostart-4e12cde8171d4a88b8c761993c183409.scope" "org.freedesktop.DBus.Error.AccessDenied" "Failed to get file context on /home/alex/autostart.desktop."

And here is a downstream report of this issue: https://pagure.io/fedora-kde/SIG/issue/50
Comment 1 Brent 2021-04-20 07:50:25 UTC
On Tumbleweed (March 30 and up), I do NOT have this problem, only on the Fedora 34 beta.
Comment 2 David Edmundson 2021-04-20 08:06:23 UTC
Can you clarify what doesn't apply properly?
Comment 3 Brent 2021-04-20 08:33:35 UTC
On Fedora 34 KDE beta, setting a program to launch on login through Autostart creates a `.desktop` file which is NOT run at login. So in fact the program does not autostart.
Comment 4 David Edmundson 2021-04-20 09:10:10 UTC
I don't think that particular line is relevant, we want the one from the generator. Can you include the whole log, or at least include your .desktop file
Comment 5 Alex 2021-04-20 16:11:27 UTC
I'm not sure how much logging detail I should include, or how best to get that log, but I was scrolling through journalctl and saw this from systemd-xdg-autostart-generator:

/etc/xdg/autostart/org.kde.dolphin.desktop:109: Unknown key name 'InitialPreference' in section 'Desktop Entry', ignoring.

I will attach the .desktop file that line refers to.
Comment 6 Alex 2021-04-20 16:12:02 UTC
Created attachment 137731 [details]
Generated .desktop file
Comment 7 Alex 2021-04-21 13:30:57 UTC
Setting back to REPORTED as I have provided the requested info. If there is anything else you need, please let me know.
Comment 8 Nate Graham 2021-04-21 19:33:10 UTC
What systemd version do you have? If it's 248 or earlier, then this is Bug 433299, which is fixed in systemd 249.
Comment 9 Alex 2021-04-22 01:01:03 UTC
(In reply to Nate Graham from comment #8)
> What systemd version do you have? If it's 248 or earlier, then this is Bug
> 433299, which is fixed in systemd 249.

I probably should have said this to begin with... It's systemd 248. Thanks.
Comment 10 Nate Graham 2021-04-22 02:34:35 UTC
Gotcha. So then this is Bug 433299, and it should be fixed with Systemd 249.

*** This bug has been marked as a duplicate of bug 433299 ***