info: Move copy to clipboard function to c++

1 job for master in 21 minutes and 17 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #69754
flatpak
flatpak

00:21:17