Linux_x64 - Unable to Open clipboard error

Report any Hollywood bugs here
Post Reply
NathanH
Posts: 128
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Linux_x64 - Unable to Open clipboard error

Post by NathanH »

Hi,

The following code on Linux_x64 (Ubuntu 24.04 with Wayland disabled) produces an "Unable to open clipboard error".

Code: Select all

@DISPLAY{Hidden=True}
@OPTIONS{Quiet=True}
type, data$=GetClipboard()
NathanH
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Linux_x64 - Unable to Open clipboard error

Post by airsoftsoftwair »

That's a feature. It's impossible to access the clipboard on Linux without an X11 display so you won't be able to access the clipboard if there is no display I'm afraid. Workaround: Open a dummy window somewhere outside the bounds of the screen and hide it, then you should be able to get clipboard access or use some console tools like xclip etc.
NathanH
Posts: 128
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: Linux_x64 - Unable to Open clipboard error

Post by NathanH »

Thank you for the explanation and workaround.

NathanH
Post Reply