Mac Dock Bug. Even when App is in dock as shortcut, app opens new instance in Dock. #49473

Closed
opened 2016-09-28 06:59:59 +02:00 by Timothy Jack · 40 comments

Hi,

It's common in mac to drag the app into the dock to create a shortcut for it. In macOS Sierra 10.12 this functionality doesn't work as it should.

After dragging Blender into the dock, when clicking on the Blender Icon in the dock it opens the app in a new instance on the dock.

As you can see app is already in the dock and then when clicked on it opens a new icon over to the right.

Screen Shot 2016-09-28 at 2.56.38 pm.png

Just a bit odd..

Thanks

Hi, It's common in mac to drag the app into the dock to create a shortcut for it. In macOS Sierra 10.12 this functionality doesn't work as it should. After dragging Blender into the dock, when clicking on the Blender Icon in the dock it opens the app in a new instance on the dock. As you can see app is already in the dock and then when clicked on it opens a new icon over to the right. ![Screen Shot 2016-09-28 at 2.56.38 pm.png](https://archive.blender.org/developer/F369764/Screen_Shot_2016-09-28_at_2.56.38_pm.png) Just a bit odd.. Thanks
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @TimothyJack

Added subscriber: @TimothyJack

#52619 was marked as duplicate of this issue

#52619 was marked as duplicate of this issue

Added subscribers: @MartijnBerger, @MikeErwin, @mont29

Added subscribers: @MartijnBerger, @MikeErwin, @mont29
@MikeErwin, @MartijnBerger, thoughts?
Martijn Berger was assigned by Sergey Sharybin 2016-09-28 12:58:13 +02:00

Added subscriber: @paspourriel

Added subscriber: @paspourriel

Added subscriber: @mallow

Added subscriber: @mallow

I have a similar issue with dock and blender. After reboot or login, blender's dock icon changes into question mark and stops working. Maybe it is related to this issue. If not, I will submit new bug report.
Zrzut ekranu 2016-11-08 o 22.20.18.png

I have a similar issue with dock and blender. After reboot or login, blender's dock icon changes into question mark and stops working. Maybe it is related to this issue. If not, I will submit new bug report. ![Zrzut ekranu 2016-11-08 o 22.20.18.png](https://archive.blender.org/developer/F394991/Zrzut_ekranu_2016-11-08_o_22.20.18.png)

My problem seems related to Gatekeeper Path Randomization (GPR). After googling GPR, sierra, dock, etc. I have found a solution here: https://forums.vandyke.com/showthread.php?t=12513

After using this command in Terminal:

xattr -dr com.apple.quarantine /Applications/blender/

blender icon stays in dock after restarting my laptop.
*change blender folder to the name of your folder, for example blender-2.78a-OSX_10.6-x86_64

@TimothyJack maybe this would solve your problem too?

My problem seems related to Gatekeeper Path Randomization (GPR). After googling GPR, sierra, dock, etc. I have found a solution here: https://forums.vandyke.com/showthread.php?t=12513 After using this command in Terminal: ``` xattr -dr com.apple.quarantine /Applications/blender/ ``` blender icon stays in dock after restarting my laptop. *change **blender** folder to the name of your folder, for example **blender-2.78a-OSX_10.6-x86_64** @TimothyJack maybe this would solve your problem too?
Member

The attribute com.apple.quarantine cannot be set inside the zip. I suspect downloading the zip from blender.org does set this and extracting the zip sets it on all containing files.

We probably need to switch to a proper dmg based install to avoid this.

The attribute com.apple.quarantine cannot be set inside the zip. I suspect downloading the zip from blender.org does set this and extracting the zip sets it on all containing files. We probably need to switch to a proper dmg based install to avoid this.
Author

@mallow and @MartijnBerger Thank you both for looking into it.

@mallow I did have the question mark problem too, however I think after updating to latest Sierra it might have fixed it. (I cannot confirm though)
Thanks too re solution, I'd prefer to avoid a Terminal solution if possible :) Unfortunately the original dock problem I encountered is still there in latest Sierra.

@MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple.

@mallow and @MartijnBerger Thank you both for looking into it. @mallow I did have the question mark problem too, however I think after updating to latest Sierra it might have fixed it. (I cannot confirm though) Thanks too re solution, I'd prefer to avoid a Terminal solution if possible :) Unfortunately the original dock problem I encountered is still there in latest Sierra. @MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple.

Added subscriber: @FilipMond

Added subscriber: @FilipMond

Added subscriber: @LuthienDulk

Added subscriber: @LuthienDulk

In #49473#403442, @TimothyJack wrote:

@mallow I did have the question mark problem too, however I think after updating to latest Sierra it might have fixed it. (I cannot confirm though)

I'm on Mac OS 10.12.2; the problem still occurs here (Blender 2.78a).
I just noticed it after not having used Blender for a while.

> In #49473#403442, @TimothyJack wrote: > @mallow I did have the question mark problem too, however I think after updating to latest Sierra it might have fixed it. (I cannot confirm though) I'm on Mac OS 10.12.2; the problem still occurs here (Blender 2.78a). I just noticed it after not having used Blender for a while.

The same issue for me on OS X 10.12 (Sierra).
When I double click blender.app icon, then in this directory

/private/var/folders/jr/tfyh0hcn2kz477q0hpd108hm0000gn/T/AppTranslocation/

is generated like mount volume with subfolder "d" and "Blender.app" in it.
That is why second icon of running Blender in the OS X Dock.
Screen Shot 2017-02-23 at 11.42.41 copy.jpg
Screen Shot 2017-02-23 at 12.04.02 copy.jpg

Quiting blender ejects the volume.
It takes sometimes quite a long time.
Probably that is why OS writes "Can't be open because disk it is on has been ejected." when I close blender and try open quickly new one.
Screen Shot 2017-02-23 at 12.12.43 copy.jpg
Only after this "volume" disappears from folder I can open another file.

Is arising some solution for this issue?
Thank you for help.

I came across to this when I saw an add-ons path displayed in user preferences.

The same issue for me on OS X 10.12 (Sierra). When I double click blender.app icon, then in this directory ``` /private/var/folders/jr/tfyh0hcn2kz477q0hpd108hm0000gn/T/AppTranslocation/ ``` is generated like mount volume with subfolder "d" and "Blender.app" in it. That is why second icon of running Blender in the OS X Dock. ![Screen Shot 2017-02-23 at 11.42.41 copy.jpg](https://archive.blender.org/developer/F494426/Screen_Shot_2017-02-23_at_11.42.41_copy.jpg) ![Screen Shot 2017-02-23 at 12.04.02 copy.jpg](https://archive.blender.org/developer/F494428/Screen_Shot_2017-02-23_at_12.04.02_copy.jpg) Quiting blender ejects the volume. It takes sometimes quite a long time. Probably that is why OS writes "Can't be open because disk it is on has been ejected." when I close blender and try open quickly new one. ![Screen Shot 2017-02-23 at 12.12.43 copy.jpg](https://archive.blender.org/developer/F494430/Screen_Shot_2017-02-23_at_12.12.43_copy.jpg) Only after this "volume" disappears from folder I can open another file. Is arising some solution for this issue? Thank you for help. I came across to this when I saw an add-ons path displayed in user preferences.

Added subscriber: @danny0rah

Added subscriber: @danny0rah

Umm, I just moved the Blender icon out of the blender folder. No more second icon.

Umm, I just moved the Blender icon out of the blender folder. No more second icon.

Same for me :) Thats the most wired step to fix I can confirm here :)
In czech we use to say "get out - get in" in meaning restart computer if you have a problem.
But this is literately that case :)

Even app is moved back into blender folder and I log out/in user it keeps one icon as supposed to.

Same for me :) Thats the most wired step to fix I can confirm here :) In czech we use to say "get out - get in" in meaning restart computer if you have a problem. But this is literately that case :) Even app is moved back into blender folder and I log out/in user it keeps one icon as supposed to.
Author

Thank You!

I can confirm this works. Many thanks for such a simple fix.
For some reason it doesn't like the folder it is in from blender.org download zip.

I can create a new folder say 'Blender 2.78c' and put Blender in that, and then drag Blender app from the newly created folder to the dock and then open it - and it works in the one instance =) Perhaps a Mac os update has helped things too.

Tim

Thank You! I can confirm this works. Many thanks for such a simple fix. For some reason it doesn't like the folder it is in from blender.org download zip. I can create a new folder say 'Blender 2.78c' and put Blender in that, and then drag Blender app from the newly created folder to the dock and then open it - and it works in the one instance =) Perhaps a Mac os update has helped things too. Tim

Added subscriber: @quantumanomaly

Added subscriber: @quantumanomaly

I too can confirm that placing Blender.app directly in /Applications solved the issue with a duplicate icon appearing in the dock. One solution besides creating a .dmg installer could be to have Blender.app placed alongside (instead of within) the folder that contains the licenses and extras (such as Blender Player). That way when users drag it to /Applications it's exactly where it needs to be from the start. Just an idea.

I too can confirm that placing Blender.app directly in /Applications solved the issue with a duplicate icon appearing in the dock. One solution besides creating a .dmg installer could be to have Blender.app placed *alongside* (instead of within) the folder that contains the licenses and extras (such as Blender Player). That way when users drag it to /Applications it's exactly where it needs to be from the start. Just an idea.

Added subscriber: @AnadinX

Added subscriber: @AnadinX

Pretty good fix here for it.

https://www.crowdrender.com.au/forum-1/getting-started/macos-gatekeeper-breaks-crowdrender

Seems for some reason Blender is getting wrongly quarantined even when using Right Click/Open.

Pretty good fix here for it. https://www.crowdrender.com.au/forum-1/getting-started/macos-gatekeeper-breaks-crowdrender Seems for some reason Blender is getting wrongly quarantined even when using Right Click/Open.

@AnadinX Isn't this the same as my fix?
https://developer.blender.org/T49473#403226

@AnadinX Isn't this the same as my fix? https://developer.blender.org/T49473#403226

Added subscriber: @chris-35

Added subscriber: @chris-35

@mallow indeed it is, big apologies I had not seen your comment when I came across this problem before.

@mallow indeed it is, big apologies I had not seen your comment when I came across this problem before.

@AnadinX No problem. I am glad it worked for you too :)

@AnadinX No problem. I am glad it worked for you too :)

Added subscriber: @FabriceDucouret

Added subscriber: @FabriceDucouret

Added subscriber: @rippledj

Added subscriber: @rippledj

@MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple.

How is a .zip file simpler than a .dmg file?

> @MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple. How is a .zip file simpler than a .dmg file?

I do think it would be good to address this, every nightly build or update or 2.8 version I have to remove blender from quarantine, its not really a desired behaviour.

I do think it would be good to address this, every nightly build or update or 2.8 version I have to remove blender from quarantine, its not really a desired behaviour.

Added subscriber: @Al-Martinsen

Added subscriber: @Al-Martinsen

In #49473#473128, @rippledj wrote:

@MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple.

How is a .zip file simpler than a .dmg file?

Agree with you. .zip is in no way better, simpler or easier than a .DMG. Actually, packing it as a signed DMG should avoid this issue. I'm new to Blender (not to Mac), and this gives a bad impression in beginners using Macs :(.

> In #49473#473128, @rippledj wrote: >> @MartijnBerger Thank you, I hope we can keep the zip if possible :) Nice and simple. > > How is a .zip file simpler than a .dmg file? Agree with you. .zip is in no way better, simpler or easier than a .DMG. Actually, packing it as a signed DMG should avoid this issue. I'm new to Blender (not to Mac), and this gives a bad impression in beginners using Macs :(.
Martijn Berger was unassigned by Dalai Felinto 2019-12-23 16:36:58 +01:00
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'
Member

Is this still an issue with blender 2.83 from https://builder.blender.org/download/

Is this still an issue with blender 2.83 from https://builder.blender.org/download/

Just tried with Blender 2.83 (Feb 11, 00:25:34 - 189e96ba68 downloaded from https://builder.blender.org/download/

Opened the DMG, dragged the app into /Applicaitons, then dragged it onto my Dock and tried to launch.

  1. The app does not appear to be notarised so it cannot launch

Screen Shot 2020-02-11 at 10.43.14 am.png

  1. I right click and open and choose open from the gatekeeper dialogue box (to tell macOS that I am OK with launching it), it launches fine and only the icon Dock is showing as launched.

Screen Shot 2020-02-11 at 10.50.16 am.png

  1. Launching from the Dock also works correctly.

So. In the case of this specific bug with macOS 10.15.3 & Blender 2.83 Alpha it is Fixed.

I don't have an older version of macOS to check here, sorry.

BUT the app is not notarised which it should be. This is also a problem with 2.82 Beta build but NOT 2.81 so this is probably OK too

2.81 just warns me that the app is downloaded from the internet.

Screen Shot 2020-02-11 at 10.53.16 am.png

Just tried with Blender 2.83 (Feb 11, 00:25:34 - 189e96ba687c downloaded from https://builder.blender.org/download/ Opened the DMG, dragged the app into /Applicaitons, then dragged it onto my Dock and tried to launch. 1. The app does not appear to be notarised so it cannot launch ![Screen Shot 2020-02-11 at 10.43.14 am.png](https://archive.blender.org/developer/F8333994/Screen_Shot_2020-02-11_at_10.43.14_am.png) 2. I right click and open and choose open from the gatekeeper dialogue box (to tell macOS that I am OK with launching it), it launches fine and only the icon Dock is showing as launched. ![Screen Shot 2020-02-11 at 10.50.16 am.png](https://archive.blender.org/developer/F8334003/Screen_Shot_2020-02-11_at_10.50.16_am.png) 3. Launching from the Dock also works correctly. So. In the case of this specific bug with macOS 10.**15**.3 & Blender 2.83 Alpha it is Fixed. I don't have an older version of macOS to check here, sorry. BUT the app is not notarised which it should be. This is also a problem with 2.82 Beta build but NOT 2.81 so this is probably OK too 2.81 just warns me that the app is downloaded from the internet. ![Screen Shot 2020-02-11 at 10.53.16 am.png](https://archive.blender.org/developer/F8334010/Screen_Shot_2020-02-11_at_10.53.16_am.png)
Member

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Aaron Carlisle self-assigned this 2020-02-11 04:52:08 +01:00
Member

Buildbot builds are not signed, this something being worked on, official builds will be signed.

Buildbot builds are not signed, this something being worked on, official builds will be signed.

Removed subscriber: @Al-Martinsen

Removed subscriber: @Al-Martinsen
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
15 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#49473
No description provided.