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

Sharing files? #3

Open
drien opened this issue Jan 16, 2024 · 1 comment · May be fixed by #7
Open

Sharing files? #3

drien opened this issue Jan 16, 2024 · 1 comment · May be fixed by #7
Labels
enhancement New feature or request

Comments

@drien
Copy link
Owner

drien commented Jan 16, 2024

Currently this only supports text, but files could be shared over the local network as well

  • Write file from clipboard to a randomized dir in /tmp/
  • Run python -m http.server as a subprocess
  • Generate QR with hostname:port/filename.

Would probably want to have this as a pref and off by default.

@drien drien added the enhancement New feature or request label Jan 16, 2024
@drien
Copy link
Owner Author

drien commented Jan 16, 2024

        console.warn(St.Clipboard.get_default().get_mimetypes(St.ClipboardType.CLIPBOARD));
        St.Clipboard.get_default().get_mimetypes(St.ClipboardType.CLIPBOARD).forEach((itm) => {
         // filter from hardcoded list of acceptable mimetypes?
          St.Clipboard.get_default().get_content(St.ClipboardType.CLIPBOARD, itm, (clipboard, bytes) => {
            // Do something
          })
        });

@drien drien linked a pull request Nov 12, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant