Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix X11 clipboard timeout on linux #83

Open
achristmascarl opened this issue Sep 17, 2024 · 1 comment
Open

fix X11 clipboard timeout on linux #83

achristmascarl opened this issue Sep 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@achristmascarl
Copy link
Owner

bug description

first reported in #77, it seems like arboard's clipboard creation takes to long with X11. This reported on ubuntu 20 and reproduced in ubuntu 22 and also arch

technical details

this was patched in #81, but falling back to the textarea buffer means the data doesn't make it to the user's actual clipboard. it looks like extending the timeout for creating the Clipboard instance might help (1Password/arboard#147), but will need to test that out to verify

system info

  • OS version and architecture (can be obtained by running uname in your terminal): ubuntu 20, ubuntu 22, and whatever arch latest is as of 9/17/2024. all 64 bit
  • rainfrog version (available in crash logs or by running rainfrog --version): v0.2.0

expected behavior

arboard works on linux

@achristmascarl achristmascarl added the bug Something isn't working label Sep 17, 2024
@LucasGarciaSI
Copy link

Possível Solução

Você pode implementar a sugestão de aumentar o tempo limite na criação da área de transferência:

func CreateClipboardInstance() error {
    timeout := 500 * time.Millisecond // Aumentar o timeout conforme necessário
    clipboardInstance, err := NewClipboard(timeout)
    if err != nil {
        return fmt.Errorf("falha ao criar a instância da área de transferência: %v", err)
    }
    return nil
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants