Skip to content

BUG: CopyToClipboard method throws an error for JSON-RPC v2 plugins #3071

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

Open
2 tasks done
Yusyuriv opened this issue Nov 12, 2024 · 2 comments · May be fixed by #3314
Open
2 tasks done

BUG: CopyToClipboard method throws an error for JSON-RPC v2 plugins #3071

Yusyuriv opened this issue Nov 12, 2024 · 2 comments · May be fixed by #3314
Labels
bug Something isn't working keep-fresh

Comments

@Yusyuriv
Copy link
Member

Yusyuriv commented Nov 12, 2024

Checks

  • I have checked that this issue has not already been reported.

  • I am using the latest version of Flow Launcher.

Problem Description

When trying to call this method from a JSON-RPC v2 plugins, it throws an error.

Flow Launcher Version

1.19.4

Windows Build Number

10.0.26120.961

Error Log

System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made.
   at System.Windows.OleServicesContext.SetDispatcherThread()
   at System.Windows.OleServicesContext.get_CurrentOleServicesContext()
   at System.Windows.Clipboard.CriticalSetDataObject(Object data, Boolean copy)
   at Flow.Launcher.PublicAPIInstance.CopyToClipboard(String stringToCopy, Boolean directCopy, Boolean showDefaultNotification) in Z:\flow-launcher\Flow.Launcher\Flow.Launcher\PublicAPIInstance.cs:line 141
@Yusyuriv Yusyuriv added the bug Something isn't working label Nov 12, 2024

This comment has been minimized.

@github-actions github-actions bot added the Stale label Jan 12, 2025

This comment has been minimized.

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