Clipboard.Copy(myCam & " +" & str_myLens, "text/plain")
Any idea what's wrong with this?
Clipboard.Copy(myCam & " +" & str_myLens, "text/plain")
It's Wayland.
Thanks Bruce. I installed wl-clipboard to follow up on this but it doesn't help unfortunately. Since you mentioned gb-qt5-wayland I checked its status on my system:BruceSteers wrote: ↑Tuesday 27th December 2022 12:20pm maybe you could install
wl-clipboard command?
dnf list \*gambas\*wayland\*
Last metadata expiration check: 0:26:49 ago on Wed 28 Dec 2022 10:10:41 CET.
Installed Packages
gambas3-gb-gtk3-wayland.x86_64 3.17.3-5.fc38 @rawhide
gambas3-gb-qt5-wayland.x86_64 3.17.3-5.fc38 @rawhide
Really?01McAc wrote: ↑Wednesday 28th December 2022 9:49amThanks Bruce. I installed wl-clipboard to follow up on this but it doesn't help unfortunately. Since you mentioned gb-qt5-wayland I checked its status on my system:BruceSteers wrote: ↑Tuesday 27th December 2022 12:20pm maybe you could install
wl-clipboard command?
If Desktop.Platform = "wayland" Then
Exec ["wl-copy", "-p", "-t", "text/plain", myCam & " +" & str_myLens]
Else
Clipboard.Copy(myCam & " +" & str_myLens, "text/plain")
Endif
Code: Select all
wl-copy --help
Usage:
wl-copy [options] text to copy
wl-copy [options] < file-to-copy
Copy content to the Wayland clipboard.
Options:
-o, --paste-once Only serve one paste request and then exit.
-f, --foreground Stay in the foreground instead of forking.
-c, --clear Instead of copying anything, clear the clipboard.
-p, --primary Use the "primary" clipboard.
-n, --trim-newline Do not copy the trailing newline character.
-t, --type mime/type Override the inferred MIME type for the content.
-s, --seat seat-name Pick the seat to work with.
-v, --version Display version info.
-h, --help Display this message.
Mandatory arguments to long options are mandatory for short options too.
...
Exec ["wl-copy", "-p", "-t", "text/plain", myCam & " +" & str_myLens]
...
Shell "wl-copy -t text/plain" & myCam & " " & myLensString Wait