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

Proof of concept local network file sharing #7

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Proof of concept local network file sharing #7

wants to merge 2 commits into from

Conversation

drien
Copy link
Owner

@drien drien commented Jan 22, 2024

  • If clipboard contains binary data, look up the mimetype's associated extension and write the file to a tmp directory
  • Start a background python http.server process in the tmp directory
  • Render the computer's local network hostname+http server port to the QR code menu popup

Todo:

  • Rewrite filenames from pasted_file.* if a txt is present with the originally copied filename.
    • If originally copied filename is present, only write files with matching extension?
  • Add settings panel to enable file passing
    • Add warning when enabling setting about not using it on untrusted wifi as there is no encryption
  • Get hostname programmatically
  • Gracefully handle subprocess failing to start
  • Clean up tmp directory on menu close

@drien drien linked an issue Nov 12, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sharing files?
1 participant