Ctrl+Shift+v stopped working

Hi all,

Somehow Ctrl+Shift+v stopped working for me! Ctrl+Shift+c works and see the popup on the top right reporting the correct number of bytes copied, but I can’t paste it in any VM. I have tried pasting within Debian 10 / Fedora 33,34 VMs, but no luck so far.

The /etc/qubes-rpc/policy/qubes.ClipboardPaste file is untouched, and the only change I made recently was update the qubes-gui-daemon and qubes-audio-daemon in dom0 from current-testing.

Any idea what could be going on? What log files could I look at to find out more about the issue?

Thanks

You could check Qubes Global Settings to make sure the combination is set to Ctrl+Shift+V instead of something else?

Thanks, I have checked both the “Qubes Global Settings” and /etc/qubes/guid.conf in dom0 and none of them override the default Ctrl+Shift+v

the only change I made recently was update the qubes-gui-daemon and qubes-audio-daemon in dom0 from current-testing

Turns out this ^ was the problem: I cherry picked 2 packages from current-testing (because I just wanted the fix for #6518). After trying many different tweaks, I decided to do a full dom0 upgrade to current-testing:

qubes-dom0-update --enablerepo=qubes-dom0-current-testing

and that fixed the issue after a restart.

Cherry picking updated packages is never a good idea - although the
dependencies should be set to pull in associated packages, it’s not
guaranteed to work.
It’s always better to run a full update, as you have found.

For anyone searching for a different solution:
Short Version: If you recently changed a policy file you probably introduced a mistake.

In my case the problem was, that I recently changed an unrelated policy file.
For me: /etc/qubes-rpc/policy/qubes.SshAgent2

This led to qrexec crashing, which led to a permission denied in the related guid logs:
/var/log/qubes/guid.work.log

See the qrexec log for more detail on where the policy error is (or could be)
/var/log/qubes/qrexec.work.log

Just a reminder that in 4.1 the canonical place for qrexec policy is in
/etc/qubes/policy.d
The default rules are in 90-default policy.
If you want to modify those rules, or create new, put the new rules in a
lower numbered file - e.g. 30-user.policy

compatibility with /etc/qubes-rpc/policy/ rules will be removed idc.

Thank you for the Hint. Somehow I totally missed that!

I like the new syntax much better!

It stopped working for me as well but I don’t have those log files. Any idea how to further debug?

Can someone please share some tip? I am clueless where and how to start to debug…

And again I messed up some policy and can find it although my eyes were bleeding of looking for a typo. Is there a specific spot in journalctl I could look for for an error while trying to execute CTRL+Shift+V?

If it helps, the only place where it works is the place it shouldn’t: in dom0 xfce4-terminal but only for the clipboard created in dom0??? This is not reproducible in any other VM,

EDIT: No other combination works either, which is expected, because it’s about messed up policy, not a mechanism itself.

I tried breaking policy once… it wasn’t fun.

I dunno if it helps, but I’d look here:

Maybe one of those linters will find the problem for you.

While troubleshooting qrexec policies for an adminvm I used

sudo journalctl -b -f -u qubes-qrexec-policy-daemon

The -b option in this case limits the request to the latest boot.
The -f causes the log to follow additional events
The -u qubes-qrexec-policy-daemon limits the request to the systemd unit.

Wow, thanks to both of you guys! These are great tips I never new about before and allowed me to quickly check and trace events.
Unfortunately, all of my policies are ok, at least in qubes/policy.d dir, I have restarted qubesd but still the same issue as described above…

Can qubes-rpc/policy dir policies affect this? I am not able to choose this folder with QPE

Is your Ctrl+Shift+v not working or is qrexec crashing or permission denied in related guid logs or all of the above. What exactly are you trying to solve? If the Ctrl+Shift+v not working what are the logs showing?

What 2 qubes are you pasting between? Check the /var/log/qubes/*.from-qube.log and the /var/log/qubes/*.to-qube.log for any details related to those particular qubes. Or do the same from Qube Manager for the from and to qubes. Also check for other recently written logs that seem relevant in the /var/log/qubes directory. I just found /var/log/qubes/policy-admin.log . It may or may not have relevant messages/errors.

Check the Clipboard copy and paste shortcuts again and the text for the qubes.ClipboardPaste. Is it the default or has it been changed. Can you post some details?

I just did an in-place upgrade to 4.3 my /etc/qubes-rpc/policy is empty except for an empty include directory. Are you using 4.3 what is in your directory.

I am still using Qubes v4.2x

Ctrl+Shift+v not working. Nothing crashes, or visibly happens when I press it. Watching live in dom0 with journalctl -f nothing happens when I press Ctrl+Shift+v

Ctrl+Shift+v to work?

from disp1610 to disp2598 (tried from dom0, or any other, but it doesn’t work across the Qubes OS)

Here are the logs from both, respectively (“FROM” guid.disp1610.log, qrexec.disp1610.log, qubesdb.disp1610.log and the same 3 for the other “TO” qube):

Icon size: 128x128
invalid PMaxSize for 0x6a001d7 (16384/16384)
invalid PMaxSize for 0x6a001d7 (16384/16384)
libvchan_is_eof
Warning: cannot read config file (/var/run/qubes/guid-conf.114): file I/O error
Icon size: 128x128
domain dead
Failed to connect to gui-agent

2026-06-21 05:42:45.604 qrexec-daemon[256384]: qrexec-daemon.c:1040:connect_daemon_socket: connection to socket failed: No such file or directory
WARNING:root:warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
INFO:policy:qrexec: qubes.WindowIconUpdater+: disp1610 → @adminvm: allowed to dom0
2026-06-21 05:42:46.026 qrexec-daemon[256389]: qrexec-daemon.c:1040:connect_daemon_socket: connection to socket failed: No such file or directory
WARNING:root:warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
INFO:policy:qrexec: qubes.GetDate+nanoseconds: disp1610 → @default: allowed to dom0
2026-06-21 05:43:22.591 qrexec-daemon[256249]: qrexec-daemon.c:1634:main: qrexec-agent has disconnected
domain dead
2026-06-21 05:43:22.593 qrexec-daemon[256249]: qrexec-daemon.c:1499:handle_agent_restart: cannot connect to qrexec agent: No such file or directory
2026-06-21 05:43:22.593 qrexec-daemon[256249]: qrexec-daemon.c:1636:main: Failed to reconnect to qrexec-agent, terminating
2026-06-21 05:43:29.458 qrexec-daemon[256384]: process_io.c:249:qrexec_process_io: vchan connection closed early (fds: 4 4 -1, status: -1 -1)

vchan closed
reconnecting
vchan closed

Icon size: 128x128
invalid PMaxSize for 0x82001d7 (16384/16384)
invalid PMaxSize for 0x82001d7 (16384/16384)
connect: No such file or directory
connect: No such file or directory
Window 0x82001d7 is still set as transient_for for a 0x82001d9 window, but VM tried to destroy it
libvchan_is_eof
Warning: cannot read config file (/var/run/qubes/guid-conf.115): file I/O error
Icon size: 128x128
domain dead
Failed to connect to gui-agent

2026-06-21 05:42:51.289 qrexec-daemon[256430]: qrexec-daemon.c:1040:connect_daemon_socket: connection to socket failed: No such file or directory
WARNING:root:warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
INFO:policy:qrexec: qubes.WindowIconUpdater+: disp2598 → @adminvm: allowed to dom0
2026-06-21 05:42:53.241 qrexec-daemon[256437]: qrexec-daemon.c:1040:connect_daemon_socket: connection to socket failed: No such file or directory
WARNING:root:warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
INFO:policy:qrexec: qubes.GetDate+nanoseconds: disp2598 → @default: allowed to dom0
2026-06-21 05:43:20.980 qrexec-daemon[256366]: qrexec-daemon.c:1634:main: qrexec-agent has disconnected
domain dead
2026-06-21 05:43:20.982 qrexec-daemon[256366]: qrexec-daemon.c:1499:handle_agent_restart: cannot connect to qrexec agent: No such file or directory
2026-06-21 05:43:20.982 qrexec-daemon[256366]: qrexec-daemon.c:1636:main: Failed to reconnect to qrexec-agent, terminating
2026-06-21 05:43:24.246 qrexec-daemon[256430]: process_io.c:249:qrexec_process_io: vchan connection closed early (fds: 4 4 -1, status: -1 -1)

vchan closed
reconnecting
vchan closed

I have checked again and it doesn’t work. qubes.ClipboardPaste was missing, so I copied it from the backup, restarted qubesd but to na avail. Here’s the text for the qubes.ClipboardPaste

Note that policy parsing stops at the first match,
so adding anything below “@anyvm @anyvm action” line will have no effect
Clipboard paste (Ctrl-Shift-V) will treat “ask” as “allow” but only when
called by this keyboard shortcut. “deny” always denies the operation.
Please use a single # to start your custom comments
dom0 @anyvm ask
@anyvm @anyvm ask

The comments are commented out with “##” but I deleted them for the sake of formatting here, otherwise the text would be with the font size of 36 or something

policy-admin.log doesn’t seem to have anything indicative:

policy-admin.log part at the time of these trials

2026-06-20 17:39:17,618 policy.List+ (dom0)
2026-06-20 17:39:17,735 policy.include.List+ (dom0)
2026-06-20 17:39:39,922 policy.Get+30_user (dom0)
2026-06-20 17:40:38,473 policy.Get+50-config-clipboard (dom0)
2026-06-20 17:40:48,106 policy.Get+50-config-input (dom0)
2026-06-20 17:40:59,400 policy.Get+50-config-updates (dom0)
2026-06-20 17:41:09,598 policy.Get+50-gui-sys-gui-gpu (dom0)
2026-06-20 17:41:15,818 policy.Get+50-sys-audio (dom0)
2026-06-20 17:41:34,116 policy.Get+80-whonix (dom0)
2026-06-20 17:41:42,102 policy.Get+85-admin-backup-restore (dom0)
2026-06-20 17:41:56,493 policy.Get+90-admin-default (dom0)
2026-06-20 17:42:19,660 policy.Get+85-admin-backup-restore (dom0)
2026-06-20 17:42:28,509 policy.Get+90-admin-default (dom0)
2026-06-20 17:42:44,943 policy.Get+90-admin-policy-default (dom0)
2026-06-20 17:42:53,561 policy.Get+90-default (dom0)
2026-06-20 17:43:08,120 policy.Get+90-default-gui-daemon (dom0)
2026-06-20 17:43:15,702 policy.Get+90-default-linux (dom0)
2026-06-20 17:43:22,704 policy.Get+90-default-pdf-convert (dom0)
2026-06-20 17:43:28,833 policy.include.Get+admin-global-ro (dom0)
2026-06-20 17:43:37,238 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:44:29,511 policy.include.Get+admin-local-ro (dom0)
2026-06-20 17:44:35,528 policy.include.Get+admin-local-rwx (dom0)
2026-06-20 17:44:50,291 policy.include.Get+admin-policy-ro (dom0)
2026-06-20 17:44:58,205 policy.include.Get+admin-policy-rwx (dom0)
2026-06-20 17:45:16,974 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:48:01,432 policy.include.Get+admin-global-ro (dom0)
2026-06-20 17:48:12,485 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:53:05,913 policy.Get+30_user (dom0)
2026-06-20 17:54:58,526 policy.List+ (dom0)
2026-06-20 17:54:58,657 policy.include.List+ (dom0)
2026-06-20 17:55:05,288 policy.Get+31_user (dom0)
2026-06-20 17:55:41,516 warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
2026-06-20 17:55:41,516 ignoring /etc/qubes-rpc/policy/include (not a file)
2026-06-20 17:55:41,517 ignoring /etc/qubes-rpc/policy/whonix.GatewayCommand.rpmsave (ignored suffix)
2026-06-20 17:55:41,517 ignoring /etc/qubes-rpc/policy/whonix.NewStatus.rpmsave (ignored suffix)
2026-06-20 17:55:41,517 ignoring /etc/qubes-rpc/policy/whonix.SdwdateStatus.rpmsave (ignored suffix)
2026-06-20 17:55:41,517 ignoring /etc/qubes-rpc/policy/qubes.USB.rpmsave (ignored suffix)
2026-06-20 17:55:41,517 ignoring /etc/qubes-rpc/policy/xrandr-1920-1080-80,sh.rpmsave (ignored suffix)
2026-06-20 17:55:41,578 policy.Replace+31_user (dom0)
2026-06-20 17:55:41,718 policy.Get+31_user (dom0)
2026-06-20 17:57:19,603 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:57:31,633 warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
2026-06-20 17:57:31,633 ignoring /etc/qubes-rpc/policy/include (not a file)
2026-06-20 17:57:31,633 ignoring /etc/qubes-rpc/policy/whonix.GatewayCommand.rpmsave (ignored suffix)
2026-06-20 17:57:31,633 ignoring /etc/qubes-rpc/policy/whonix.NewStatus.rpmsave (ignored suffix)
2026-06-20 17:57:31,633 ignoring /etc/qubes-rpc/policy/whonix.SdwdateStatus.rpmsave (ignored suffix)
2026-06-20 17:57:31,633 ignoring /etc/qubes-rpc/policy/qubes.USB.rpmsave (ignored suffix)
2026-06-20 17:57:31,634 ignoring /etc/qubes-rpc/policy/xrandr-1920-1080-80,sh.rpmsave (ignored suffix)
2026-06-20 17:57:31,665 policy.include.Replace+admin-global-rwx (dom0)
2026-06-20 17:57:31,781 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:57:36,821 policy.include.Get+admin-local-rwx (dom0)
2026-06-20 17:57:44,931 warning: !compat-4.0 directive in file /etc/qubes/policy.d/35-compat.policy line 16 is transitional and will be deprecated
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/include (not a file)
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/whonix.GatewayCommand.rpmsave (ignored suffix)
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/whonix.NewStatus.rpmsave (ignored suffix)
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/whonix.SdwdateStatus.rpmsave (ignored suffix)
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/qubes.USB.rpmsave (ignored suffix)
2026-06-20 17:57:44,932 ignoring /etc/qubes-rpc/policy/xrandr-1920-1080-80,sh.rpmsave (ignored suffix)
2026-06-20 17:57:44,957 policy.include.Replace+admin-local-rwx (dom0)
2026-06-20 17:57:45,074 policy.include.Get+admin-local-rwx (dom0)
2026-06-20 17:57:50,364 policy.include.Get+admin-policy-rwx (dom0)
2026-06-20 17:57:58,731 policy.include.Get+admin-policy-rwx (dom0)
2026-06-20 17:58:04,635 policy.include.Get+admin-global-rwx (dom0)
2026-06-20 17:58:09,650 policy.include.Get+admin-local-rwx (dom0)

Also, 50-config-clipboard.policy looks pretty generic:

qubes.ClipboardPaste * @adminvm @anyvm ask
qubes.ClipboardPaste * @anyvm @anyvm ask

I guess I answered all your questions now, but I don’t see how this could help you to help me to debug it, hahaha. In any case, let me know if you’re out of ideas, please.

Well…

As they say: how the programmer fixes the car? Exits the car, enters the car. I restarted Qubes and now it works. So, why? It looks like restarting qubesd is not enough… And missing qubes.ClipboardPaste, although I had 50-config-clipboard.policy?

Twilight zone… Thanks for your efforts guys. Next time i will first restart Qubes before asking for a help :grin: