Jump to content

Malwarebytes spawns another Dock item when launched


Recommended Posts

No, that isn't normal I'm afraid. But it is common on both macOS and Windows, regardless of the program in question. The cause is usually the presence of duplicate shortcuts in the file directory where application shortcuts are stored. I actually had to fix that issue again on my Windows machine this morning, but I'm afraid I don't know the folder path you need to use on macOS.

If you'd to automate cleanup of duplicate shortcuts, it shouldn't be too difficult to create a script that runs in the background.

Link to post
Share on other sites

I would recommend you temporarily remove the left (launch) icon from your dock by either click and hold on it then drag it up so that it goes "poof" when you release the mouse click or hold down the Control -key then click and hold until the menu pops up and select Options->Remove from Dock.

Now click and hold on the running icon until the menu pops up and select Options->Keep in Dock.

But I don't find this to be common with macOS and have never experienced it in the two decades that I've used Macs, so there could be a deeper issue.

Edited by alvarnell
Link to post
Share on other sites

In the case of my Windows machine, this always usually started happening around the same time that programs started forgetting their settings (for example, Discord and Firefox forgetting my sign-in) and icons/thumbnails got scrambled, so probably a result of stuff in AppData (which is also where your taskbar is stored) getting corrupted. This isn't a big surprise seeing as my computer has a dying HDD. Again, I'm not sure what the macOS version of the AppData folder is, but maybe you can try my same troubleshooting approach.

Link to post
Share on other sites

I wonder if MB is using some sort of a non-standard app configuration.

Typically we put an item in the dock by dragging it there from the /Applications folder. This is how we placed the Malawrebytes.app in the Dock initially.

But when I use Control+Click 'Show in Finder' on the Dock item for the running Malwarebytes icon the Finder shows the path not as /Applications/Malwarebytes.app but as /Library/Application\ Support/Malwarebytes/MBAM/Engine.bundle/Contents/PlugIns/FrontendApplication.app 

So, in my screncaps from my original post - the left Malwarebytes icon leads to /Applications/Malawrebytes.app while the right (running) icon leads to /Library/Application\ Support/Malwarebytes/MBAM/Engine.bundle/Contents/PlugIns/FrontendApplication.app

Is that consistent with what other macOS users are seeing when running Malwarebytes?

 

Link to post
Share on other sites

I suspect you are correct. I've never had Malwarebytes in my Dock, so I tried that and can confirm the same behavior you are seeing.

When I followed my own instructions for app removal and keeping the Engine.bundle Plugin, I found that I can launch the "app" by using the new icon, without spawning a new running icon. So it does appear that a non-standard method here.

Link to post
Share on other sites

34 minutes ago, Amaroq_Starwind said:

I'm not sure what the macOS version of the AppData folder is

It's in a preference file that is at

/Users/<UserName>/Library/Preferences/com.apple.dock.plist

and would not be a good idea to manually edit it, especially when the Finder already provides adequate controls to do so.

Link to post
Share on other sites

54 minutes ago, alvarnell said:

I suspect you are correct. I've never had Malwarebytes in my Dock, so I tried that and can confirm the same behavior you are seeing.

When I followed my own instructions for app removal and keeping the Engine.bundle Plugin, I found that I can launch the "app" by using the new icon, without spawning a new running icon. So it does appear that a non-standard method here.

Thanks for testing this @alvarnell

I've followed your suggestion and Docked the running Malwarebyte icon rather than the one from /Applications!

Link to post
Share on other sites

  • Staff

It seems like the question is answered, but just to confirm, this is completely normal. To keep the size of the software down, the app resides in /Library/Application Support, so that resources can be shared between the application and other related processes. The app that is in the Applications folder is just a "stub" that launches the full app.

Link to post
Share on other sites

On 3/8/2019 at 1:55 PM, treed said:

To keep the size of the software down, the app resides in /Library/Application Support, so that resources can be shared between the application and other related processes. The app that is in the Applications folder is just a "stub" that launches the full app.

I assume this is the reason that if I ask Siri to "Launch Malwarebytes" she replies with "Which app would you like to use?" and offers the options of Malwarebytes or Malwarebytes.

Not a problem for me (I normally use Spotlight to launch apps), but I wonder if this may cause Accessibility problems for disabled users.

Regardless, it looks like you may have also answered a different but similar question. Many thanks.SiriMBorMBbig.png.c9c951fbd62a0b1cc4060a3926ad9a64.png

Link to post
Share on other sites

I'm running macOS 10.14.3 and BBEdit 12.6.1 and don't see that problem. BBEdit is a normal application located in the /Applications directory (folder). When I click on the icon and select Options->Show in Finder it only goes to that app. I can only guess you have two copies of BBEdit somewhere and you should view each icon in Finder to figure out where the older one is located.

Link to post
Share on other sites

Thank you for yor attempt to help but you should not assume everybody you talk to is technically declined. If a second app would have been somewhere I would have noticed it, believe me.

It has to do with macOS internal settings, a configuration mishap (maybe it got confused with trashcan.) Immediately after triggering an auto-update BBEdit will ask to quit itself, install it and relaunch. After proceeding a second icon appeared and the original, which was permanently pinned, was inactive. Deleteing old icon and making new icon permanent solved the problem. It has nothing to do with physical instances and locations. And it didn‘t happen all the years.

I just wanted to inform about this which may happen to other apps as well.

Cheers

ALN

Link to post
Share on other sites

Thanks, I'll put put a BBEdit in the dock and see what happens with the next update.

But the Malwarebytes situation is unique in that the icon shown in the /Applications folder is not where the application is actually located. It is a stub used to launch the actual application located in the /Library/Applications Support/Malwarebytes/... folder. I've never run across a similar setup, but it has been confirmed that this was the reason for two icons in this particular discussion.

Link to post
Share on other sites

I would not count on it. I believe you will need more time consuming investigation. All these double „instances“ are mostly configuration mishaps, always happened with LaunchServices, Dock etc. whenever settings storage was involved (e.g. Open with... showing multiple apps no more installed etc.)

I wouldn’t take much comfort into the stub incident either. How was this confirmed? Is it proved that both icons point to different locations on disk? As the UI does not show you what‘s actually happening, you can be tricked into believing you are confronted with two different apps. macOS is keen to hide „system“ data, so showing the inerts of Engine.bundle via Siri and the like won‘t happen, in my experience. Although, Spotlight is the backbone of any search for the system itself, only proper constructed queries in Spotlight‘s own querie language will uncover these. Besides porgramming, there are some tools which allow the send these queries where you can test (e.g. Quicksilver.)

Testing this is equally hard, as the order of appearance can vary and you find yourself launching the same app over and over again. After all this is not really something to worry about. I just wanted to turn the attention to such a problem in macOS. And everybody can go by his business. :)

Link to post
Share on other sites

7 minutes ago, ALN said:

I wouldn’t take much comfort into the stub incident either. How was this confirmed?

The developer @treed confirmed that the OP's analysis (and my confirmation) was correct. 

Quote

Is it proved that both icons point to different locations on disk?

Yes, by using the technique outlined above by the OP (control-click on the Dock icons and select Options->Show in Finder) the static one pointed to /Applications while the active on to  /Library/Application\ Support/Malwarebytes/MBAM/Engine.bundle/Contents/PlugIns/FrontendApplication.app

Link to post
Share on other sites

By the way, it is also new if I‘m not mistaken, that internal processes spawned off are displayed in Dock etc. I recognized this recently in different apps which should not happen. Maybe this can play a role too. I still see such incidents as an OS related problem.

Link to post
Share on other sites

Now hopefully for the last time.

I‘m sorry, I fully misunderstood the problem. I was talking about a completly different but similar looking incident.

Now after testing this, I realized my mistake, sorry to confuse everybody. Dragging the MB app to dock from /Applications is of course a seperate app as in Engine.bundle and Dock shows it correctly as two seperate files.

Again, very sorry.

ALN

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
×
×
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.