我不知道是什么引发了这种情况,但重启几次后,一些键盘快捷键不起作用。
例如,我通常使用 guake 打开它F12
,但现在它不起作用了。但是,Ctrl+Alt+T
它工作正常。我可以使用键盘快捷键复制和粘贴文本,没有任何问题。另一个不起作用的是我Ctrl+Shift+V
分配给打开 CopyQ 剪贴板菜单的快捷键。
我可以从设置中定义自定义键盘快捷键来打开和关闭 guake,但它的操作与以前不同。通常它会在我的鼠标处于活动状态时打开终端,但如果我使用命令将其定义为自定义快捷方式,它将始终在主显示屏上打开。
所以我认为,以某种方式固定在 gnome 上运行的应用程序无法将它们自己的键盘快捷键注册到 gnome。
当我查看 gnome 日志并过滤 copyq 时,显示以下日志:
09:17:06 copyq: Warning: Failed to set global shortcut "Ins" for command "Show the tray menu".
09:17:06 copyq: Warning: Failed to set global shortcut "Ins" for command "Show the tray menu".
09:17:06 copyq: Warning: Failed to set global shortcut "Ctrl+Shift+V" for command "Show the tray menu".
09:17:06 copyq: ERROR: [default] QtCritical: Failed to activate Wayland clipboard
09:17:06 copyq: Warning: [default] QtWarning: Activating Wayland clipboard took 5000 ms
09:16:59 copyq: Warning: [default] QtWarning: QSocketNotifier: Can only be used with threads started with QThread
09:16:59 systemd: Started app-gnome-copyq-5810.scope - Application launched by gnome-session-binary.
以下是 guake 的结果:
09:17:14 kernel: audit: type=1400 audit(1734416234.042:258): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:14 kernel: audit: type=1400 audit(1734416234.042:258): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:14 kernel: audit: type=1400 audit(1734416234.013:257): apparmor="DENIED" operation="open" class="file" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/guake/autostart-guake.desktop" pid=5919 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
09:17:02 guake: Guake initialized
09:17:02 guake: Guake initialized
09:17:02 guake: Guake tabs restored from /home/cagdasalagoz/.config/guake/session.json
09:17:02 systemd: Started vte-spawn-8e979882-df3f-47c8-8bb5-546675ba7e3f.scope - VTE child process 6622 launched by guake process 5749.
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: can't bind show-focus key
09:17:02 guake: current workspace is 0
09:17:02 systemd: Started vte-spawn-696ec79c-f7ce-4c5d-aa7f-efabf91d8099.scope - VTE child process 6594 launched by guake process 5749.
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: Spawning new terminal at /home/cagdasalagoz
09:17:02 guake: created fresh notebook for workspace 0
09:17:02 guake: Gtk 3.24.41
09:17:02 guake: VTE 0.76.0
09:17:02 guake: Guake Terminal 3.10
09:17:01 guake: Language previously loaded from: /usr/share/locale
09:17:01 guake: Loading Gnome schema from: /usr/share/glib-2.0/schemas
09:17:01 guake: Guake not running, starting it
09:16:59 systemd: Started app-gnome-guake-5749.scope - Application launched by gnome-session-binary.
我遇到了同样的问题。我发现唯一能解决这个问题的方法就是:从设置中设置自定义快捷方式。 屏幕截图
ubuntu Xorg
好的,我通过在登录前单击右下角的设置按钮切换到登录屏幕来使其工作。copyq 和 guake 都按预期工作。