-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
can't drag file to the window of an electron app #12460
Comments
Did you ever find a solution to this problem ? I am experiencing the same thing. |
Same behaviour here... any solution for this? Electron 2.0.4 |
Did you ever find a solution to this problem ? I am experiencing the same thing in Electron 2.0.8 |
As far as I understand, the problem is when the application runs in Administration mode (windows), in this mode it's impossible to drag and drop files because the OS is avoiding this behavior, if the same application runs with normal user rights, the drag and drop of files works as expected. I don't know if there is some technique to change this, although. |
Thank you for taking the time to report this issue and helping to make Electron better. The version of Electron you reported this on has been superseded by newer releases. If you're still experiencing this issue in Electron v4.2.x or later, please add a comment specifying the version you're testing with and any other new information that a maintainer trying to reproduce the issue should know. I'm setting the Thanks in advance! Your help is appreciated. |
I can confirm having the same issue with electron
Is there any configuration required in the |
Is this issue resolved in electron 6.x.x by chance? I'm also getting the 🛇 icon and can't drop anything. |
VSCode is also hitting this. Cross referencing: microsoft/vscode#38999 |
same issue |
This is not a problem with Electron, this is a Windows OS concept (Mandatory Integrity Control). If you run Electron from an administrator mode console, or any "Run as Administrator" process, then you try to drag&drop from a Windows Explorer instance (which can't run in administrator mode), then Drag & Drop, and many other capabilities, will not work. If I run my Electron app from a normal console with no administrator UAC elevation, I can drag and drop normally. See Windows integrity levels, process explorer can show which process cross the integrity level. I have posted more info in the referenced VSCode issue. |
According this article, I created a .bat file with the following:
Saved it to my desktop and dragged the exe of my electron app onto the .bat file icon and it opened the app and allowed me to drag and drop onto the app window just fine. What I'm wondering is this: Is there a way to build that into the packaged app? Iow, have that command execute automatically when someone opens the app without having to tell someone what to do? |
Any good news or better trick to accomplish it while developing on Win10? |
any news? |
As explained by #12460 (comment), this is a limitation applied by Windows itself and we are unable to solve it. So I'm closing this as won't fix. |
Confirming that running VSCode without administrative privileges solved the issue on my end. |
Expected behavior
I want to drag a file to the window of an electron app , But I can't do this, when I drag the file to the application window, the mouse cursor becomes disabled.
Actual behavior
the mouse cursor changes to disabled: 🛇
can't capture drag & drop event
How to reproduce
The text was updated successfully, but these errors were encountered: