You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Pinning Atom to the Windows taskbar duplicates the icon #7374
Since 0.210.0, it appears that Atom gets two icons instead of just one if Atom is pinned to the Windows taskbar. Clicking the pinned icon will open another icon that represents the running app. I would expect the first instance of Atom to reuse the pinned icon rather than adding a new one.
Your old pinned link won't be working then.
Could you try and remove it, then pin your new icon (when Atom is open)?
Did you previously install Atom via Chocolatey by any chance, or perhaps had other instances that were installed differently than with the standard installer in the past?
Yep, I tried actually pinning the icon for the active window, and pinning it adds a second icon to the taskbar immediately. I've only ever installed Atom using the official downloads, and upgraded using the in-app functionality. Nothing funky with Chocolatey or building from source.
I'm also seeing this, but its a broken in slightly different ways in different builds of Windows (8.1 and 10-10158) so will cover them separately.
In 8.1:
If you use the icon on the desktop to pin to the taskbar, then open atom from that pinned icon, then you get a second icon on the taskbar.
However if you open atom from the shortcut, then use the icon in the taskbar to pin it then it works properly, and you then always have the single icon.
Looking at the shortcuts that are created the first method above creates a shortcut which points at update.exe --processStart atom.exe. The second method produces a shortcut which references atom.exe directly. (but presumably misses some auto-update abilities from update.exe). I'm not sure but this is possibly linked.
In 10
Which ever way the pinned icon is created, there are always the two icons in the taskbar when it is pinned and also running. Not sure why this would be different in 10 from 8.1
Thanks for adding this info, @jonegerton.
It's clear by now that taskbar pinning is handled differently in Win10 and Squirrel may have to adapt.
Not sure when that happens though.
I noticed that on build-to-build upgrades of Win10, Atom disappears entirely from the Start menu. Typing 'atom' only results in a shortcut to 'atom.cmd' at "%localappdata%\atom\bin\atom.cmd".
Can reproduce on newer Windows 10 builds... >= 10158, possibly even on older builds.
It did work on Windows 10... Been using W10 since they started the preview program. And I only found out about Atom after that... So I've been using atom pinned the whole time. And it worked.
It only stopped working when after a W10 build update, it was no longer pinned, so I opened it again and repinned. That's when it started. I assumed it was a Atom 1.0 problem, since it was coincidentally around the same time. I don't use atom every day.
But reading this issue then perhaps it really is a W10 thing. I tried changing the shortcut target to atom.cmd, and other configurations, but to no avail. There are always two icons on the taskbar if it's pinned and running.
I tried several unpinning / pinning scenarios previously with the shortcut, from the Start menu, the actual exe. I also tried an uninstall, remove my .atom directory and re-install. None of those worked.
However, I found a pinning scenario that did work. Make sure it's unpinned from the taskbar, open Atom from Windows menu, with Atom open, right-click its icon in the taskbar, and there is an option to pin. Selecting that pin method worked.
Just to assure myself I'm not crazy I went back to my previous pinning scenarios and those still didn't work... so at least it's consistent in my environment.
Reacted by Santosh Vemu, Davide Carlier and Lir Locker
Yeah, that seems consistent with that I was thinking. The paths aren't getting updated correctly during an upgrade for existing shortcuts; this still occurs for me every once and a while. It isn't an issue with pinning, though.
@mspiezio What does "from Windows menu" mean? How else would one open it? I know of no other way to pin something, either, than what you described. At any rate, I couldn't get your suggestion to work. I'm not sure how it's different from all the other things I've tried.
Please fix this, Atom team. I can't even tell you how often I've clicked the wrong icon and opened a second instance of Atom.
Yeah, I've used Windows before, too. Not many folks go looking for executables or a command prompt during their workflow, though, and I assume that the program should be un-pinned first. Just looking for clarification on the phrase. I assume it means "Start menu".
Here are my findings, installing latest Atom release (as of 2017-10-21) on Windows 10 Enterprise 1703.
If you right click on the Atom menu in the Start menu and select Pin to Taskbar, you end up with a duplicate icon when the program lauches.
Instead, what you you should do [to avoid the duplicate icon] is to launch Atom and then right click on the resulting taskbar icon and select Pin to Taskbar. Then, if you close Atom, the icon will remain (perhaps it will disappear after an upgrade; I'm not sure), but when you launch it you will remain with one taskbar icon for Atom.
I suspect what a lot of people would be doing is right-clicking on the Start of Desktop menu and selecting Pin to Taskbar, in which case the resulting link points to
C:\Users\USER\AppData\Local\atom\atom.exe
but that appears to be a wrapper, and is not what is eventually running; the thing that is running is
Thank you @cameronkerrnz, but this has been suggested before (see the second and third posts in this thread). It results in an immediate duplicate icon for me.
Hi isherwood,
I know it is an old one... but still wanted to help if anyone still suffers from this:
Did you try going C:\Users\(username)\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and delete the shortcut from there, then start atom from .exe and pin it after it started?
Thanks, but that shortcut doesn't exist for my user. Also, there's some confusion about which .exe to use. See #5055. I have at least 4, counting older version folders at /AppData/Local/atom/.
UPDATE: Apparently I picked the right .exe (the one at the folder above and not in a version subfolder). My duplicate icon seems gone.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
batjko commentedon Jun 22, 2015
Your old pinned link won't be working then.
Could you try and remove it, then pin your new icon (when Atom is open)?
Did you previously install Atom via Chocolatey by any chance, or perhaps had other instances that were installed differently than with the standard installer in the past?
tabrezm commentedon Jun 22, 2015
Yep, I tried actually pinning the icon for the active window, and pinning it adds a second icon to the taskbar immediately. I've only ever installed Atom using the official downloads, and upgraded using the in-app functionality. Nothing funky with Chocolatey or building from source.
rjfmachado commentedon Jun 24, 2015
Seeing the same behavior with Windows 10 build 10130.
jonegerton commentedon Jul 1, 2015
I'm also seeing this, but its a broken in slightly different ways in different builds of Windows (8.1 and 10-10158) so will cover them separately.
In 8.1:
If you use the icon on the desktop to pin to the taskbar, then open atom from that pinned icon, then you get a second icon on the taskbar.
However if you open atom from the shortcut, then use the icon in the taskbar to pin it then it works properly, and you then always have the single icon.
Looking at the shortcuts that are created the first method above creates a shortcut which points at
update.exe --processStart atom.exe. The second method produces a shortcut which referencesatom.exedirectly. (but presumably misses some auto-update abilities fromupdate.exe). I'm not sure but this is possibly linked.In 10
Which ever way the pinned icon is created, there are always the two icons in the taskbar when it is pinned and also running. Not sure why this would be different in 10 from 8.1
batjko commentedon Jul 1, 2015
Thanks for adding this info, @jonegerton.
It's clear by now that taskbar pinning is handled differently in Win10 and Squirrel may have to adapt.
Not sure when that happens though.
jonegerton commentedon Jul 1, 2015
@batjko: Seems like it, although note that in some circumstances it doesn't work properly on 8.1 either as I've described.
anaisbetts commentedon Jul 1, 2015
I'm going to be working on this bug soon
tabrezm commentedon Jul 6, 2015
I noticed that on build-to-build upgrades of Win10, Atom disappears entirely from the Start menu. Typing 'atom' only results in a shortcut to 'atom.cmd' at "%localappdata%\atom\bin\atom.cmd".
phenome commentedon Jul 8, 2015
Can reproduce on newer Windows 10 builds... >= 10158, possibly even on older builds.
It did work on Windows 10... Been using W10 since they started the preview program. And I only found out about Atom after that... So I've been using atom pinned the whole time. And it worked.
It only stopped working when after a W10 build update, it was no longer pinned, so I opened it again and repinned. That's when it started. I assumed it was a Atom 1.0 problem, since it was coincidentally around the same time. I don't use atom every day.
But reading this issue then perhaps it really is a W10 thing. I tried changing the shortcut target to atom.cmd, and other configurations, but to no avail. There are always two icons on the taskbar if it's pinned and running.
anaisbetts commentedon Jul 10, 2015
/cc electron/electron#2175
warpdesign commentedon Jul 20, 2015
+1
Hope this pull request fixes the problem.
Does the issue still need reproduction ?
cristianvuolo commentedon Jul 31, 2015
any solution?
anaisbetts commentedon Jul 31, 2015
@cristianvuolo This should be fixed once #7877 lands
34 remaining items
mspiezio commentedon Apr 6, 2017
This is still an issue. Win10 x64 Atom 1.15.0
Re-Open, or create a new ticket?
jonathanrdelgado commentedon Apr 6, 2017
I can't reproduce on Win10 x64, could you try unpinning your current shortcut then pinning the new one? Maybe your paths didn't update with Atom.
mspiezio commentedon Apr 6, 2017
I tried several unpinning / pinning scenarios previously with the shortcut, from the Start menu, the actual exe. I also tried an uninstall, remove my .atom directory and re-install. None of those worked.
However, I found a pinning scenario that did work. Make sure it's unpinned from the taskbar, open Atom from Windows menu, with Atom open, right-click its icon in the taskbar, and there is an option to pin. Selecting that pin method worked.
Just to assure myself I'm not crazy I went back to my previous pinning scenarios and those still didn't work... so at least it's consistent in my environment.
jonathanrdelgado commentedon Apr 6, 2017
Yeah, that seems consistent with that I was thinking. The paths aren't getting updated correctly during an upgrade for existing shortcuts; this still occurs for me every once and a while. It isn't an issue with pinning, though.
isherwood commentedon Apr 28, 2017
@mspiezio What does "from Windows menu" mean? How else would one open it? I know of no other way to pin something, either, than what you described. At any rate, I couldn't get your suggestion to work. I'm not sure how it's different from all the other things I've tried.
Please fix this, Atom team. I can't even tell you how often I've clicked the wrong icon and opened a second instance of Atom.
warpdesign commentedon Apr 28, 2017
@isherwood Actually you have several ways to open an app in Windows 10:
I can even think of a fith one: if you had associated some file types to Atom and you click on this type of file.
isherwood commentedon Apr 28, 2017
Yeah, I've used Windows before, too. Not many folks go looking for executables or a command prompt during their workflow, though, and I assume that the program should be un-pinned first. Just looking for clarification on the phrase. I assume it means "Start menu".
isherwood commentedon May 16, 2017
Problem remains in 1.17.0 ia32.
cameronkerrnz commentedon Oct 21, 2017
Here are my findings, installing latest Atom release (as of 2017-10-21) on Windows 10 Enterprise 1703.
If you right click on the Atom menu in the Start menu and select Pin to Taskbar, you end up with a duplicate icon when the program lauches.
Instead, what you you should do [to avoid the duplicate icon] is to launch Atom and then right click on the resulting taskbar icon and select Pin to Taskbar. Then, if you close Atom, the icon will remain (perhaps it will disappear after an upgrade; I'm not sure), but when you launch it you will remain with one taskbar icon for Atom.
I suspect what a lot of people would be doing is right-clicking on the Start of Desktop menu and selecting Pin to Taskbar, in which case the resulting link points to
C:\Users\USER\AppData\Local\atom\atom.exe
but that appears to be a wrapper, and is not what is eventually running; the thing that is running is
C:\Users\USER\AppData\Local\atom\app-1.21.1\atom.exe
Hope that makes it clearer for people what is happening.
isherwood commentedon Oct 23, 2017
Thank you @cameronkerrnz, but this has been suggested before (see the second and third posts in this thread). It results in an immediate duplicate icon for me.
bfcns commentedon Feb 19, 2018
Hi isherwood,
I know it is an old one... but still wanted to help if anyone still suffers from this:
Did you try going C:\Users\(username)\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar and delete the shortcut from there, then start atom from .exe and pin it after it started?
isherwood commentedon Feb 19, 2018
Thanks, but that shortcut doesn't exist for my user. Also, there's some confusion about which .exe to use. See #5055. I have at least 4, counting older version folders at /AppData/Local/atom/.
UPDATE: Apparently I picked the right .exe (the one at the folder above and not in a version subfolder). My duplicate icon seems gone.
bfcns commentedon Feb 20, 2018
isherwood,
I am using the portable version (.zip) for that reason.
lock commentedon Aug 19, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!