Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@tabrezm

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.

Activity

  1. batjko commented on Jun 22, 2015

    @batjko
    Contributor

    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?

  2. tabrezm commented on Jun 22, 2015

    @tabrezm
    Author

    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.

  3. added
    windows
    on Jun 23, 2015
  4. rjfmachado commented on Jun 24, 2015

    @rjfmachado

    Seeing the same behavior with Windows 10 build 10130.

  5. jonegerton commented on Jul 1, 2015

    @jonegerton

    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

  6. batjko commented on Jul 1, 2015

    @batjko
    Contributor

    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.

  7. jonegerton commented on Jul 1, 2015

    @jonegerton

    @batjko: Seems like it, although note that in some circumstances it doesn't work properly on 8.1 either as I've described.

  8. anaisbetts commented on Jul 1, 2015

    @anaisbetts
    Contributor

    I'm going to be working on this bug soon

  9. tabrezm commented on Jul 6, 2015

    @tabrezm
    Author

    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".

  10. phenome commented on Jul 8, 2015

    @phenome

    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.

  11. anaisbetts commented on Jul 10, 2015

    @anaisbetts
    Contributor
  12. warpdesign commented on Jul 20, 2015

    @warpdesign

    +1
    Hope this pull request fixes the problem.
    Does the issue still need reproduction ?

  13. cristianvuolo commented on Jul 31, 2015

    @cristianvuolo

    any solution?

  14. anaisbetts commented on Jul 31, 2015

    @anaisbetts
    Contributor

    @cristianvuolo This should be fixed once #7877 lands

  15. 34 remaining items

  16. mspiezio commented on Apr 6, 2017

    @mspiezio

    This is still an issue. Win10 x64 Atom 1.15.0
    Re-Open, or create a new ticket?

  17. jonathanrdelgado commented on Apr 6, 2017

    @jonathanrdelgado

    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.

  18. mspiezio commented on Apr 6, 2017

    @mspiezio

    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.

  19. jonathanrdelgado commented on Apr 6, 2017

    @jonathanrdelgado

    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.

  20. isherwood commented on Apr 28, 2017

    @isherwood

    @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.

  21. warpdesign commented on Apr 28, 2017

    @warpdesign

    @isherwood Actually you have several ways to open an app in Windows 10:

    • from the start menu
    • from the taskbar (if you previously pinned the app)
    • from the explorer, by clicking on the app's icon
    • from the command line (I would guess the behavior would be the same that clicking on the app)

    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.

  22. isherwood commented on Apr 28, 2017

    @isherwood

    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".

  23. isherwood commented on May 16, 2017

    @isherwood

    Problem remains in 1.17.0 ia32.

  24. cameronkerrnz commented on Oct 21, 2017

    @cameronkerrnz

    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.

  25. isherwood commented on Oct 23, 2017

    @isherwood

    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.

  26. bfcns commented on Feb 19, 2018

    @bfcns

    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?

  27. isherwood commented on Feb 19, 2018

    @isherwood

    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.

  28. bfcns commented on Feb 20, 2018

    @bfcns

    isherwood,

    I am using the portable version (.zip) for that reason.

  29. lock commented on Aug 19, 2018

    @lock

    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!

  30. locked as resolved and limited conversation to collaborators on Aug 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions