On 13/07/2021 05:56, Patrick O'Callaghan wrote:
On Mon, 2021-07-12 at 23:27 +0800, Ed Greshko wrote:
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?
Is this on X11 or Wayland? I think spice-vdagent is an X11 client.
X11, I avoid Wayland like the plague.
--
Remind me to ignore comments which aren't germane to the thread.
_______________________________________________
kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kde@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure