Hi,
In order to have the clipboard work properly in a KDE qemu guest it is necessary to run
spice-vdagent upon
login. I've been doing that via a crude method of placing
"/usr/bin/spice-vdagent" in my .bashrc.
I would like to switch that over to a user unit.
So, I created a file ~/.config/systemd/user/spice-vdagent.service containing
[Unit]
Description=TestMe
After=plasma-core.target
[Service]
ExecStart=/usr/bin/spice-vdagent
[Install]
WantedBy=plasma-core.target
I enabled it, but it doesn't work. The status I get after login is...
○ spice-vdagent.service - TestMe
Loaded: loaded (/home/egreshko/.config/systemd/user/spice-vdagent.service; enabled;
vendor preset: disabled)
Active: inactive (dead) since Mon 2021-07-12 23:18:06 CST; 52s ago
Process: 1998 ExecStart=/usr/bin/spice-vdagent (code=exited, status=0/SUCCESS)
Main PID: 1998 (code=exited, status=0/SUCCESS)
CPU: 16ms
Jul 12 23:18:05
f34k2.greshko.com systemd[1824]: Started TestMe.
Jul 12 23:18:05
f34k2.greshko.com spice-vdagent[2002]: vdagent started
Jul 12 23:18:06
f34k2.greshko.com spice-vdagent[2002]: display: failed to call
GetCurrentState from mutter over DBUS
Jul 12 23:18:06
f34k2.greshko.com spice-vdagent[2002]: error message: Cannot invoke
method; proxy is for the well-known name org.gnome.Mutter.DisplayConfig without an owner,
and proxy was constructed with the G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START flag
Jul 12 23:18:06
f34k2.greshko.com spice-vdagent[2002]: No guest output map, using output
index as display id
Jul 12 23:18:06
f34k2.greshko.com systemd[1824]: spice-vdagent.service: Deactivated
successfully
How can I get a user unit to do what I want?
--
Remind me to ignore comments which aren't germane to the thread.