Bug 455992 - spice-vdagentd/spice-vdagent does not start
Summary: spice-vdagentd/spice-vdagent does not start
Status: CLOSED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.25.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL: https://github.com/systemd/systemd/is...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-26 23:35 UTC by zarisase
Modified: 2024-01-31 12:41 UTC (History)
5 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 zarisase 2022-06-26 23:35:05 UTC
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
Comment 1 Nate Graham 2022-06-27 18:37:10 UTC
Could be the same issue as Bug 455252.

Can you paste the output of `journalctl -b | grep systemd-xdg-autostart-generator`?
Comment 2 zarisase 2022-06-28 17:41:43 UTC
(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.
Comment 3 zarisase 2022-06-28 17:43:24 UTC
Some more testing reveals that this issue stems from plasma-workspace --- 5.24 works, but not 5.25.
Comment 4 Nate Graham 2022-06-29 15:39:12 UTC
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?
Comment 5 zarisase 2022-06-29 16:31:07 UTC
(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=
```
Comment 6 Nate Graham 2022-06-29 20:08:23 UTC
Ok, and what's the contents of /home/system/.scripts/autostart
Comment 7 zarisase 2022-06-30 03:41:39 UTC
Just running some commands (two of which are Python scripts). The details are personal and are not specific to the problem.
Comment 8 Nate Graham 2022-06-30 16:07:19 UTC
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?
Comment 9 zarisase 2022-07-01 02:09:51 UTC
Yes, I see my "Start at Login".desktop in `System Settings > Startup and Shutdown > Autostart`, but spice-vdagent.desktop is nowhere to be found.
Comment 10 Nate Graham 2022-07-01 13:42:35 UTC
Ok. So how did you turn on autostart for the app? Something in the app itself?
Comment 11 zarisase 2022-07-01 17:01:41 UTC
What do you mean? "Start at Login" just runs /home/system/.scripts/autostart. `spice-vdagent`.desktop was installed by the spice-vdagent package.
Comment 12 Nate Graham 2022-07-05 14:07:52 UTC
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.
Comment 13 zarisase 2022-07-05 20:25:28 UTC
(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.
Comment 14 Nate Graham 2022-07-06 15:17:29 UTC
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?
Comment 15 zarisase 2022-07-07 22:15:40 UTC
(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
```
Comment 16 Nate Graham 2022-07-12 16:20:06 UTC
Thanks. Can you run:

/usr/lib/systemd/user-generators/systemd-xdg-autostart-generator
echo $?

and paste the output?
Comment 17 Fabian Vogt 2022-07-12 17:51:28 UTC
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.
Comment 18 zarisase 2022-07-13 11:07:12 UTC
(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`.
Comment 19 zarisase 2022-07-13 11:07:38 UTC
(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.
Comment 20 Fabian Vogt 2022-07-13 11:11:10 UTC
(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.
Comment 21 David Edmundson 2022-07-13 11:46:49 UTC
https://github.com/systemd/systemd/issues/18791
Comment 22 zarisase 2022-07-14 01:09:45 UTC
(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.
Comment 23 David Edmundson 2022-07-14 07:48:01 UTC
>I removed the key, but it kept happening.

Please attach output of "journalctl --user -b" after a reboot and we'll take a look.
Comment 24 zarisase 2022-07-15 01:57:32 UTC
I've just given up and disabled systemd boot.
Comment 25 Magnus Jørgensen 2024-01-31 12:41:01 UTC
*** Bug 479739 has been marked as a duplicate of this bug. ***