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

Apps cannot be launched from \\.\ volume paths #16349

Closed
Jotune opened this issue Jan 10, 2019 · 6 comments
Closed

Apps cannot be launched from \\.\ volume paths #16349

Jotune opened this issue Jan 10, 2019 · 6 comments

Comments

@Jotune
Copy link

Jotune commented Jan 10, 2019

Output of node_modules/.bin/electron --version: 6.5.0
Operating System : Windows 10 x64
Electron version: 4.0.1

Actual behaviors
I cannot start my app from a volume path. Let's say: \\.\Volume{1df47f9b-1263-11e9-8722-f46d04fd6ee0}\myapp.exe.

 fs.js:115
    throw err;
    ^

Error: EISDIR: illegal operation on a directory, lstat '\\.\Volume{1df47f9b-1263-11e9-8722-f46d04fd6ee0}\'
    at realpathSync (fs.js:1393:5)
    at Object.fs.realpathSync (ELECTRON_ASAR.js:318:24)
    at toRealPath (internal/modules/cjs/loader.js:205:13)
    at Function.Module._findPath (internal/modules/cjs/loader.js:271:22)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:25)
    at Function.Module._load (internal/modules/cjs/loader.js:510:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:746:12)
    at startup (internal/bootstrap/node.js:282:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:759:3)

To Reproduce
Get the volume path of your drive using mountvol int the CMD and try to execute your electron app from it.

Additional Information

@welcome
Copy link

welcome bot commented Jan 10, 2019

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@felixrieseberg
Copy link
Member

I'm trying to understand how important this bug is, given that this surely never worked and we've never had any complaints. Why would you not just launch the app from a drive path?

@felixrieseberg felixrieseberg changed the title execute app from volume path Apps cannot be launched from \\.\ volume paths Jan 10, 2019
@Jotune
Copy link
Author

Jotune commented Jan 11, 2019

Hello @felixrieseberg. This matters for people using UNC path or accessing shared network folders.

@Jotune
Copy link
Author

Jotune commented Jan 14, 2019

It works using NW.JS which uses Chromium and Node.js as well.
Electron.exe will resolve the path of the app / asar to load it. If the drive is not mapped, it can't execute the app. Changing this behavior may require a lot of work. As there is an alternative, it may not be important to fix this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Oct 8, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants