kcrawford / dockutil

command line tool for managing dock items
http://patternbuffer.wordpress.com
Apache License 2.0
1.36k stars 131 forks source link

Issue with user folders #82

Closed kylejericson closed 8 months ago

kylejericson commented 5 years ago

I used this tool to add the users downloads folder to the dock. The issue I have is the icon is a question mark. If I right click this and change the view as Stack and then back to view as folder the icon works. I posted my script in Jamf Nation. The item seems to work without issue beside the icon not being set right. OS: 10.14.4 dockutil: 2.0.5

Jamf Nation

kcrawford commented 5 years ago

I get the icon if the folder exists and a question mark if it doesn’t.

If I create the missing folder then restart the Dock the icon corrects itself.

What is triggering/running the script?

Are you sure the Downloads directory exists when the script is run?

Kyle

On Apr 22, 2019, at 10:16 AM, kylejericson notifications@github.com wrote:

I used this tool to add the users downloads folder to the dock. The issue I have is the icon is a question mark. If I right click this and change the view as Stack and then back to view as folder the icon works. I posted my script in Jamf Nation. The item seems to work without issue beside the icon not being set right. OS: 10.14.4 dockutil: 2.0.5

Jamf Nation

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

kylejericson commented 5 years ago

I attached the full script from the Jamf Nation. Also verified the folder is present.

Sent from my iPhone

On Apr 22, 2019, at 4:45 PM, Kyle Crawford notifications@github.com wrote:

I get the icon if the folder exists and a question mark if it doesn’t.

If I create the missing folder then restart the Dock the icon corrects itself.

What is triggering/running the script?

Are you sure the Downloads directory exists when the script is run?

Kyle

On Apr 22, 2019, at 10:16 AM, kylejericson notifications@github.com wrote:

I used this tool to add the users downloads folder to the dock. The issue I have is the icon is a question mark. If I right click this and change the view as Stack and then back to view as folder the icon works. I posted my script in Jamf Nation. The item seems to work without issue beside the icon not being set right. OS: 10.14.4 dockutil: 2.0.5

Jamf Nation

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

kylejericson commented 5 years ago

I added the --no-restart and it seemed to fix my issue.