Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

set app user model ID on Windows for taskbar pinning / grouping #156

Closed
bbondy opened this issue Jan 14, 2016 · 10 comments
Closed

set app user model ID on Windows for taskbar pinning / grouping #156

bbondy opened this issue Jan 14, 2016 · 10 comments
Assignees
Milestone

Comments

@bbondy
Copy link
Member

bbondy commented Jan 14, 2016

The installer generated with Squirrel will create a shortcut icon with an Application User Model ID in the format of com.squirrel.PACKAGE_ID.YOUR_EXE_WITHOUT_DOT_EXE, examples are com.squirrel.slack.Slack and com.squirrel.code.Code. You have to use the same ID for your app with app.setAppUserModelId API, otherwise Windows will not be able to pin your app properly in task bar.

@bbondy bbondy added the bug label Jan 14, 2016
@luixxiul
Copy link
Contributor

Isn't this bug critical?

@bbondy bbondy added this to the 0.10.0dev milestone May 16, 2016
@bbondy
Copy link
Member Author

bbondy commented May 16, 2016

not critical but I thin it can lead to 2 taskbar icons.

@luixxiul
Copy link
Contributor

So this might be related with #1779 (comment)?

@bbondy
Copy link
Member Author

bbondy commented May 16, 2016

no related to if you have a taskbar icon, and then click that taskbar icon. And a second brave icon appears on the taskbar.

@bbondy bbondy modified the milestones: 0.10.1dev, 0.10.0dev May 19, 2016
@bbondy
Copy link
Member Author

bbondy commented May 26, 2016

CC @bsclifton this sounds like something you might like to take.

@bsclifton bsclifton self-assigned this May 27, 2016
@bsclifton
Copy link
Member

bsclifton commented May 27, 2016

Looks to be already fixed 😄
d98f763#diff-98f0ed24f8f0fed04b7949391f32909e

@bbondy
Copy link
Member Author

bbondy commented May 27, 2016

I was assuming it could lead to 2 taskbar icons because maybe the exact format mentioned in the first comment wasn't followed (uppercase /lower somewhere maybe or something? )

@bsclifton bsclifton reopened this May 27, 2016
@bsclifton
Copy link
Member

bsclifton commented May 27, 2016

@bbondy after reading more in electron/electron#1954, I think you're exactly right. Basically, it could break the already pinned Brave icon when the auto-updater runs and installs a new version. I have seen this happen before; the old pinned icon turns into a blank document looking icon and then I need to use the desktop shortcut and re-pin the executable

I had mistakenly thought the packaging process was overridden with the value provided by the above commit (since the same file handles squirrel command line params)

@luixxiul
Copy link
Contributor

Does this close #1778?

@bbondy
Copy link
Member Author

bbondy commented May 29, 2016

yep I think so

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants