Weird drag and drop with Electron app

Open
#33 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
electron
Domain
desktop

Research direction

Start by reproducing the difference between debugging and the built Electron app when an OPML file is dragged onto the browser. Compare the built app's drag-and-drop handling with the behavior in Chrome and the OPML Editor. Done means the built app opens the dropped OPML file itself rather than launching the OPML Editor.

Written by the indexing model from the issue text.

Description

I want my Electron app to handle drag-and-drop from the desktop.

I want to drag an OPML file onto it, and have it open it.

I have done this before with Electron apps, for example Public Folder lets you drag a file onto it to upload it. It works.

In this case, it works when I'm debugging the app, but when I build the app, it launches the OPML Editor. This is so weird. When I drag an OPML file onto Chrome, it shows me the OPML source.

But when I do it with the browser inside Electron it opens it in the OPML Editor.

I figure I have something configured in the OS to make it do this, but I have no memory of doing it and no idea how it might have worked.

Any suggestions most welcome.

Dominant language
HTML
Stars
134
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/Scripting-News

All issues in scripting/Scripting-News

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.