-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Create shortcut on Windows #4381
Comments
It's not a bad idea, I can build that. @kevinsawicki: The code is fairly simple, I'm just not sure which object should host the method. Thoughts? |
Sorry, just want to get more context here, how would this be different than the |
The only addition would be to have an API that automatically creates a shortcut on the user's start menu. From my point of view, there's no definite need to put it into Electron - in theory, an external module and some documentation here would probably already do the trick for most people*. EDIT: *Happy to write said documentation, of course. |
Yeah, I thought https://github.com/Squirrel/Squirrel.Windows handled this correctly already so I'm not sure if a core API is needed here. I'd be curious what others think. |
Squirrel.Windows does indeed already create shortcuts with AppUserModelID set, it's always:
So:
or
|
One thing that's been On My List is to have Electron itself just automatically set your App User Model ID for you if you're Squirrel-installed, something like:
If someone submitted a PR to that effect it would be amaaaaazing |
I don't want to use Squirrel so I forked from https://github.com/j201/windows-shortcuts and add set appUserModelId function to it. This module works fine now so I'll close this issue. Thanks for your help 😃 |
Does the AppUserModelID have to be "com.squirrel.xx.yy" in order for Squirrel to correctly update pins and shortcuts? |
Our project is trying to use toast notification on Windows, which requires a shortcut with AppUserModelID on Windows 8.1.
Is it possile to provide a method to create a shortcut with customizable AppUserModelID?
Similar to
gui.App.createShortcut
on the bottom of https://github.com/nwjs/nw.js/wiki/NotificationThe text was updated successfully, but these errors were encountered: