You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Dragging and dropping a file from the file system occasionally opens it as Chromium instead of Atom #4300
Atom's drag&drop feature seem quite buggy. Sometimes it just won't open a dragged file, but even worse bug is when decides to open the file as if it was a real browser, efectively replacing the entire editor with the content of the file.
I can reproduce the drag and drop "open the file as if it was a real browser" issue on 0.161.0 under Fedora Linux. Dragging a file onto the editor works perhaps half the time for me, and this bug has hit me three times this morning. Attached a screenshot to clarify:
changed the title [-]Buggy drag&drop[/-][+]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/+]on Jun 17, 2015
changed the title [-]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/-][+]Dragging and dropping a file from the file system occasionally opens it as Chromium instead of Atom[/+]on Jun 17, 2015
I can reproduce this in Windows 8 using Atom Version 1.02
Very common when I want to open up another file really quick just to check something, have to close out of atom and reopen again. Sometimes it just closes Atom completely, end up having to end Atom in the task manager in order to restart it.
It seems like it only happens to me when I drag and drop quickly. For example, problem doesn't occur when I drag and drop over a two second time frame, but does over a 0.2 second time frame. Problem doesn't happen unless I have a project folder open in my experience.
@alexandernst Have you tried out nvm at all? That should let you easily install and manage multiple Node versions without having to rely on the Debian package being updated.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
pistou commentedon Nov 26, 2014
I came across another bug with the drag&drop feature : sometimes, when I drop a file in Atom, it just closes Atom and I have to relaunch it.
I can't tell yet if there is a special case that causes that.
I'm on Windows 8.1 - Atom 0.147.0
AshKyd commentedon Dec 26, 2014
I can reproduce the drag and drop "open the file as if it was a real browser" issue on 0.161.0 under Fedora Linux. Dragging a file onto the editor works perhaps half the time for me, and this bug has hit me three times this morning. Attached a screenshot to clarify:
alexandernst commentedon Jun 17, 2015
This is still easiily reproducible with Atom .209
[-]Buggy drag&drop[/-][+]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/+][-]Dragging and dropping a file from the file system occasionally opens as Chromium instead of Atom[/-][+]Dragging and dropping a file from the file system occasionally opens it as Chromium instead of Atom[/+]mnquintana commentedon Jun 17, 2015
@alexandernst Could you post a Gist of a file that consistently reproduces this for you?
alexandernst commentedon Jun 17, 2015
@mnquintana every file will do it. Just drag&drop fast a random text file to Atom and you'll get the bug.
mnquintana commentedon Jun 17, 2015
What OS are you on?
alexandernst commentedon Jun 17, 2015
Debian Lnux with KDE 4.11
Do you want me to make a new video?
mnquintana commentedon Jun 17, 2015
Hmmm, this looks like an instance of electron/electron#908, which should have been fixed in atom-shell 0.20.1 (back when Electron was atom-shell) and Atom's on atom-shell 0.22.3 now.
/cc @zcbenz @paulcbetts @kevinsawicki
ObviouslyGreen commentedon Jul 21, 2015
I can reproduce this in Windows 8 using Atom Version 1.02

Very common when I want to open up another file really quick just to check something, have to close out of atom and reopen again. Sometimes it just closes Atom completely, end up having to end Atom in the task manager in order to restart it.
It seems like it only happens to me when I drag and drop quickly. For example, problem doesn't occur when I drag and drop over a two second time frame, but does over a 0.2 second time frame. Problem doesn't happen unless I have a project folder open in my experience.
alexandernst commentedon Sep 10, 2015
@mnquintana Were you able to repro thsi bug?
9 remaining items
🐛 Fix #4300 by preventing 'will-navigate'
thomasjo commentedon Oct 9, 2015
Would be brilliant if someone here could test whether #9101 resolves this bug or not 🙇
alexandernst commentedon Oct 10, 2015
Can the patch be applied on top of latest stable or is master required?
thomasjo commentedon Oct 10, 2015
Should be trivial to rebase this on top of
stable.alexandernst commentedon Oct 12, 2015
I tried building
stable, but I get an error while compiling (https://paste.kde.org/ptutyoj3u), then I tried latest beta and the build went fine, but I get errors as soon as I open Atom, so I wasn't able to test the patch.thomasjo commentedon Oct 12, 2015
@alexandernst Try using a newer version of npm. Node v4.1.1 ships with npm v2.14.4 IIRC, so you should at least be using that (or newer).
Also be sure to do a
script/cleanafter you've updated your npm, and then you should be able to successfullyscript/build.alexandernst commentedon Oct 12, 2015
@thomasjo Can't get that newer on my Debian. Let's see if somebody else can test the patch, or I'll have to setup a VBox.
mnquintana commentedon Oct 12, 2015
@alexandernst Have you tried out nvm at all? That should let you easily install and manage multiple Node versions without having to rely on the Debian package being updated.
alexandernst commentedon Oct 12, 2015
@mnquintana I'd rather setup a VBox, really. Installing multiple things feels absolutely hacky and I can't let such a thing happen on my work machine.
Merge pull request #9101 from atom/tj-fix-dragging-and-dropping-files
lock commentedon Jan 20, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!