Skip to content

Desktop: Drag and drop file to open/import functionality #3035

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
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

timon-schelling
Copy link
Collaborator

Opening and importing files by dropping them into the window

  • .graphite files are opened as documents
  • .svg files are imported via PasteSvg
  • .png, .jpg and all other formats supported by the image crate are imported via PasteImage

Currently not supported on wayland see rust-windowing/winit#1881

Added x11 libs to flake because I needed them to test this through Xwayland

@timon-schelling timon-schelling changed the title Desktop drop file functionality Deskto: Drop file to open or import functionality Aug 9, 2025
@timon-schelling timon-schelling marked this pull request as ready for review August 9, 2025 16:15
@Keavon Keavon changed the title Deskto: Drop file to open or import functionality Desktop: Drag and drop file to open/import functionality Aug 10, 2025
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.

2 participants