-
Notifications
You must be signed in to change notification settings - Fork 42
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
Created shortcut is targeted to the wrong directory #30
Comments
This also happens to me. |
put a pull request together to try and fix this. for now I pull all the functions out into my main.js path.resolve(path.dirname(process.execPath),'..', this may be different for you though depending but thats why the pull request above will let you pass in your own path. |
@jpiepkow You Rock! |
+1 |
I fixed it by replacing: |
Does this will be fixed ? |
This worked for me |
The created shortcut to my electron app is not working because it's pointing to the wrong directory
Properties of the desktop shortcut:
Target: C:\Users\Win10H64\AppData\Local{app_name}}\dist.exe
Start in: C:\Users\Win10H64\AppData\Local{app_name}}\app-0.0.1
The dir where the exe resides: C:\Users\Win10H64\AppData\Local{app_name}}\app-0.0.1\dist.exe
I'm using the following:
electron: 1.4.15
electron-packager: 8.5.1
electron-winstaller: 2.5.2
electron-squirrel-startup: 1.0.0
I'm guessing that electron-squirrel-startup is the culprit in this issue. I found something similar here: Squirrel/Squirrel.Windows#900
Any help would be appreciated
The text was updated successfully, but these errors were encountered: