maphew

CopyQ on Bluefin-dx (Fedora 41)

 

Autostart#

Meta >> Tweaks >> Startup Applications >> Add copyQ  →  creates ~/.config/autostart/com.github.hluk.copyq.desktop

 

Collect clipboard contents#

I got it to work by disabling Wayland in Flatseal and adding the environment variable QT_QPA_PLATFORM=xcb

Article Image

https://github.com/hluk/CopyQ/issues/2948#issuecomment-2614271330 

 

Regsiter keyboard shortcut#

…the global shortcut is defined as Ctrl+Meta(Alt)+C, but it doesn't work. 
What I've done as a workaround is to add to Pop OS' custom keyboard shortcuts (in Settings->Keyboard->Customize Shortcuts->Custom Shortcuts) for Ctrl+Alt+C to run the command copyq menu.
https://github.com/hluk/CopyQ/issues/1432#issuecomment-737501855 

For me on Bluefin that's the lengthy:

/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=copyq com.github.hluk.copyq menu

and I use Ctrl-Alt-Z

 


Research#

For CopyQ to work, you need to

  1. Install the package.
  2. Edit the .desktop file to add env QT_QPA_PLATFORM=xcb in the exec line before the copyq call. If you launch it via this launcher - it will use XWayland instead of Xorg. So, copied entires will be populated in the list.
  3. To get global shortcuts working you need to create a custom keyboard shortcut in gnome settings for the following command to allow keyboard short cuts to select and paste.

env QT_QPA_PLATFORM=xcb copyq -e “toggle()”

Optionally you can also copy the modified .desktop file or create a symlink in autostart directory to launch on startup.

Copyq installed with flatpak on Bluefin-dx linux launches and shows in system tray but no copied items ever show up in it's history list. Attempting to use xcb yields "failed to start because no Qt platform plugin could be initialized" error.

https://github.com/hluk/CopyQ/issues/2989

On Linux, global shortcuts, pasting or clipboard monitoring does not work#

This can be caused by running CopyQ under a Wayland window manager instead of the X11 server. Depending on the desktop environment, these features may not be supported:

  • global shortcuts
  • clipboard monitoring
  • pasting from CopyQ and issuing copy command to other apps (that is passing shortcuts to application)
  • screenshot functionality
  • retrieving and matching window titles
  • querying keyboard modifiers and mouse position

Workaround: try using the Wayland Support command mentioned below or set QT_QPA_PLATFORM environment variable to run the app under Xwayland mode (additional package may be needed, for example: xorg-x11-server-Xwayland in Fedora).

For example, launch CopyQ with:

env QT_QPA_PLATFORM=xcb copyq

If CopyQ autostarts, you can change Exec=... line in ~/.config/autostart/copyq.desktop:

Exec=env QT_QPA_PLATFORM=xcb copyq

Note: Mouse selection will still work only if the source application itself supports it.

See also:  Wayland Support command reimplements some features on Wayland through external tools (see README for details on how to add the command.

Issue #27

https://copyq.readthedocs.io/en/latest/known-issues.html#on-linux-global-shortcuts-and-pasting-doesn-t-work

[

cleitophon]: An easy way to configure auto-startup for an application that already has a *.desktop file:

ln -s /usr/share/applications/org.gnome.Terminal.desktop ~/.config/autostart

This will auto-start the gnome-terminal when you start your GNOME session.

https://www.reddit.com/r/Fedora/comments/104cvob/where_can_i_configure_startup_applicatons/