SUMMARY Title. Every other DE works STEPS TO REPRODUCE 1. Install KDE on Arch Linux (ARM) in a virtual machine 2. Install spice-vdagent and enable it 3. See that clipboard sharing and cursor auto-release don't work OBSERVED RESULT spice-vgagentd doesn't start EXPECTED RESULT spice-vgagentd does start SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Arch Linux (available in About System) KDE Plasma Version: 5.95.1 KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
Could be the same issue as Bug 455252. Can you paste the output of `journalctl -b | grep systemd-xdg-autostart-generator`?
(In reply to Nate Graham from comment #1) > Could be the same issue as Bug 455252. > > Can you paste the output of `journalctl -b | grep > systemd-xdg-autostart-generator`? Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/thunderbird.desktop:1: Unknown section 'Desktop Action ComposeMessage'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/thunderbird.desktop:5: Unknown section 'Desktop Action OpenAddressBook'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/thunderbird.desktop:10: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/Start at Login.desktop:10: Key Name was defined multiple times, ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/Start at Login.desktop:14: Unknown key name 'TerminalOptions' in section 'Desktop Entry', ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:1: Unknown section 'Desktop Action Area'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:6: Unknown section 'Desktop Action FullScreen'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:11: Unknown section 'Desktop Action LastArea'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:16: Unknown section 'Desktop Action Window'. Ignoring. Jun 28 13:40:43 system systemd-xdg-autostart-generator[359]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:22: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/thunderbird.desktop:1: Unknown section 'Desktop Action ComposeMessage'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/thunderbird.desktop:5: Unknown section 'Desktop Action OpenAddressBook'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/thunderbird.desktop:10: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/Start at Login.desktop:10: Key Name was defined multiple times, ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/Start at Login.desktop:14: Unknown key name 'TerminalOptions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:1: Unknown section 'Desktop Action Area'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:6: Unknown section 'Desktop Action FullScreen'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:11: Unknown section 'Desktop Action LastArea'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:16: Unknown section 'Desktop Action Window'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[421]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:22: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/thunderbird.desktop:1: Unknown section 'Desktop Action ComposeMessage'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/thunderbird.desktop:5: Unknown section 'Desktop Action OpenAddressBook'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/thunderbird.desktop:10: Unknown key name 'Actions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/Start at Login.desktop:10: Key Name was defined multiple times, ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/Start at Login.desktop:14: Unknown key name 'TerminalOptions' in section 'Desktop Entry', ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:1: Unknown section 'Desktop Action Area'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:6: Unknown section 'Desktop Action FullScreen'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:11: Unknown section 'Desktop Action LastArea'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:16: Unknown section 'Desktop Action Window'. Ignoring. Jun 28 13:40:44 system systemd-xdg-autostart-generator[426]: /home/system/.config/autostart/org.ksnip.ksnip.desktop:22: Unknown key name 'Actions' in section 'Desktop Entry', ignoring.
Some more testing reveals that this issue stems from plasma-workspace --- 5.24 works, but not 5.25.
1. Does it work if you temporarily disable systemd boot by running `kwriteconfig5 --file startkderc --group General --key systemdBoot false` and rebooting? 2. Can you paste the contents of /home/system/.config/autostart/Start at Login.desktop?
(In reply to Nate Graham from comment #4) > 1. Does it work if you temporarily disable systemd boot by running > `kwriteconfig5 --file startkderc --group General --key systemdBoot false` > and rebooting? > > 2. Can you paste the contents of /home/system/.config/autostart/Start at > Login.desktop? 1. Yes 2. ```[Desktop Entry] Comment= Comment= Exec=/home/system/.scripts/autostart GenericName= GenericName= Icon=dialog-scripts MimeType= Name=Start at Login Name=Start at Login Path= StartupNotify=true Terminal=false TerminalOptions= Type=Application X-DBUS-ServiceName= X-DBUS-StartupType= X-KDE-AutostartScript=true X-KDE-SubstituteUID=false X-KDE-Username= ```
Ok, and what's the contents of /home/system/.scripts/autostart
Just running some commands (two of which are Python scripts). The details are personal and are not specific to the problem.
Ok. I'm just trying to find where its autostart files are. Do you see an entry for it in System Settings > Startup and Shutdown > Autostart, or in System Settings > Startup and Shutdown > Background Services?
Yes, I see my "Start at Login".desktop in `System Settings > Startup and Shutdown > Autostart`, but spice-vdagent.desktop is nowhere to be found.
Ok. So how did you turn on autostart for the app? Something in the app itself?
What do you mean? "Start at Login" just runs /home/system/.scripts/autostart. `spice-vdagent`.desktop was installed by the spice-vdagent package.
Is spice-vdagent.desktop located inside /home/system/.config/autostart/? That's how this works. If it's in there, it should autostart. If it's not, it won't. If the app is doing something weird that doesn't end up with spice-vdagent.desktop inside /home/system/.config/autostart/, than the app is buggy and needs to be fixed.
(In reply to Nate Graham from comment #12) > Is spice-vdagent.desktop located inside /home/system/.config/autostart/? > That's how this works. If it's in there, it should autostart. If it's not, > it won't. > > If the app is doing something weird that doesn't end up with > spice-vdagent.desktop inside /home/system/.config/autostart/, than the app > is buggy and needs to be fixed. Oh, "spice-vdagent.desktop" is in `/etc/xdg/autostart`, which should still work.
Ok, so it's in /etc/xdg/autostart, but not /home/system/.config/autostart/, correct? Can you paste the contents of /etc/xdg/autostart/spice-vdagent.desktop?
(In reply to Nate Graham from comment #14) > Ok, so it's in /etc/xdg/autostart, but not /home/system/.config/autostart/, > correct? > > Can you paste the contents of /etc/xdg/autostart/spice-vdagent.desktop? Yes, and ``` [Desktop Entry] Name=Spice vdagent Comment=Agent for Spice guests Exec=/usr/bin/spice-vdagent Terminal=false Type=Application Categories= X-GNOME-Autostart-Phase=WindowManager NoDisplay=true ```
Thanks. Can you run: /usr/lib/systemd/user-generators/systemd-xdg-autostart-generator echo $? and paste the output?
I've had a similar issue with a different .desktop file. If systemd encounters X-GNOME-Autostart-Phase, it bails out and the .desktop file is ignored. IMO it needs to ignore the key instead.
(In reply to Nate Graham from comment #16) > Thanks. Can you run: > > /usr/lib/systemd/user-generators/systemd-xdg-autostart-generator > echo $? > > and paste the output? Just `0`.
(In reply to Fabian Vogt from comment #17) > I've had a similar issue with a different .desktop file. If systemd > encounters X-GNOME-Autostart-Phase, it bails out and the .desktop file is > ignored. > IMO it needs to ignore the key instead. I removed the key, but it kept happening.
(In reply to zarisase from comment #19) > (In reply to Fabian Vogt from comment #17) > > I've had a similar issue with a different .desktop file. If systemd > > encounters X-GNOME-Autostart-Phase, it bails out and the .desktop file is > > ignored. > > IMO it needs to ignore the key instead. > > I removed the key, but it kept happening. I removed it here and it works fine. After systemctl --user daemon-reload, the app-spice\x2dvdagent@autostart.service unit appeared and it started properly after logging out and in again.
https://github.com/systemd/systemd/issues/18791
(In reply to David Edmundson from comment #21) > https://github.com/systemd/systemd/issues/18791 I know. I've seen it, which is why I tried removing the key from the .desktop file.
>I removed the key, but it kept happening. Please attach output of "journalctl --user -b" after a reboot and we'll take a look.
I've just given up and disabled systemd boot.
*** Bug 479739 has been marked as a duplicate of this bug. ***