Skip to main content
Solved

Adding application dock item appears with ?


Forum|alt.badge.img+20

I have a self service policy that installs an application. I

added this application to the dock items with JAMF admin.

I configured the policy, added the dock item to appear at the end of the dock.
when the policy installs the application and adds the dock item, the dock item has a question mark instead of the application icon, and when clicked it obviously doesn't work to run the application. I see the application under /Applications and its correct.

User will have to add it to the dock themselves.

Has anyone had this issue? or know how I can resolve it? I would rather have it added to the dock when the policy runs instead of having the user deal with it.

Best answer by tcandela

@larry_barrett looks like instead of specifically naming the hard drive you can use localhost instead.

file://localhost/Applications/PDFelement.app now works, the application icon shows up in the Dock

View original
Did this topic help you find an answer to your question?

19 replies

Forum|alt.badge.img+12
  • Contributor
  • 42 replies
  • September 22, 2020

We will need a few more details. Can you share some screenshots of the policy / dock paths you are trying to set? Also take a look at Docutil. It is my go-to application for managing the dock on macOS - https://github.com/kcrawford/dockutil


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 22, 2020

@danny_hanes i don't like dock util. Seems to lock users from manipulating their own dock and I don't want to do that.

file:///applications/wondershare%20pdfelement.app/

No different than any other dock items i see in the list, so i can't see how the path can be the problem


Forum|alt.badge.img+12
  • Contributor
  • 42 replies
  • September 22, 2020

@tcandela So docutil does not lock their dock unless you want it to. We simply use it to add and remove dock icons whenever we install an application.

That being said, I just installed the application on my mac and it looks like the path should be file:///Applications/PDFelement.app/

Edit: If you right click on the application and expand "name and extension" you can see the filename. I know it says "Wondershare PDFelement" in the Applications folder, but that's not actually the file name.


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 22, 2020

@danny_hanes yep, i did all that earlier just like you did with righ click to find the information, and when the policy installed the dock item it gave an error something like no such application. I have both those dock items added.

I will try it again.


Forum|alt.badge.img+12
  • Contributor
  • 42 replies
  • September 22, 2020

@tcandela Also, have you tried adding the dock icon using Jamf Admin?


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 22, 2020

@danny_hanes yes, i added the dock icon via JAMF admin. It gave that path to the icon


Forum|alt.badge.img+13
  • Contributor
  • 341 replies
  • September 22, 2020

Another thing to keep in mind when you add something to the dock is you should reset the dock at the same time. sleep 5 : killall dock under files and processes.

When in doubt on the correct path/naming, drag the icon into an open terminal window for the full output path. I'm on prem, so my workflow may be slightly different.


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3534 replies
  • September 22, 2020

@tcandela Is file:///applications/wondershare%20pdfelement.app/ actually what you have for the path in your Dock item? If so it's not going to work because Mac paths are case sensitive and you can't use applications (plus I suspect the application isn't named in all lower case)


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 22, 2020

@sdagley i just wrote the path in my response in lowercase but its correct in the JAMF dock icons.

@larry_barrett even though the dock item looks to get added before 'files and processes' would run, you think it would make a difference?
sleep 5 : killall dock


remus
Forum|alt.badge.img+5
  • Contributor
  • 29 replies
  • September 23, 2020

@tcandela We use Ryan Ball's DockBuilder. Works amazing!
Allows Dock manipulation after installation/deployment.


Forum|alt.badge.img+13
  • Contributor
  • 341 replies
  • September 23, 2020

I downloaded, installed and tested this. I'm OnPrem on Catalina 10.15.6

I'm just going to share screenshots for brevity sake.

First, setup in Settings -> Computer Management -> Dock items (note, I could not make it work without the full path including the harddrive name, your harddrive name may be different).

Next, make a policy. You should have General (to set frequency), Dock Items (to add the dock item itself) and Files and processes (to sleep and kill the dock)

General tab:

Dock Items tab:

And finally the Files and Processes tab:

Recurring check in isn't ideal. The way I'd finalize this is to make a Smartgroup with the Criteria, Application title IS PDFelement.app. Then scope the policy to the Smartgroup. This should avoid the ? of death.


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 23, 2020

@larry_barrett I added the execute command to the policy and will test it out. I usually have the drive named Macintosh SSD, some might still be Macintosh HD. I'll test again without adding the drive to the dock item path, but with the execute command in place with sleep 5; killall Dock

isn't it supposed to be a capital D for Dock?

Strange how the application is listed on the mac as /Applications/Wondershare PDFelement.app/
but in the computers JAMF information for applications its /Applications/PDFelement.app (ive noticed this before creating this discussion and tried the dock item both ways)

This is a Self Service policy that i have configured for the installation of PDFelement


Forum|alt.badge.img+13
  • Contributor
  • 341 replies
  • September 23, 2020

if you're in terminal I think it has to be Dock, but the Jamf command doesn't care.

Since I'm on Prem my workflow is going to be slightly different, but I think you're close. Sometimes on that file path its a trial and error type of deal. You can do it!


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 23, 2020

@larry_barrett the policy works great installing the application, it's just the stupid applications dock item icon.

i tested from terminal with Dock and it worked, while dock (lowercase) said no matching processes. If it doesn't matter with jamf i'll just leave it D


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 23, 2020

@larry_barrett i edited the dock entry to what you mentioned

from file:///Applications/Wondershare%20PDFelement.app/
to
file:///Macintosh SSD/Applications/PDFelement.app

i'll let you know how it goes


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • September 28, 2020

@larry_barrett do you think that instead of using the drives name, you can use what i put below? I'm testing it out. I see some dock items here that have file://localhost/*

file://localhost/Applications/PDFelement.app


Forum|alt.badge.img+13
  • Contributor
  • 341 replies
  • September 28, 2020

Here's a full list of my dock items:

Wish I could be of more help.


Forum|alt.badge.img+20
  • Author
  • Contributor
  • 978 replies
  • Answer
  • October 1, 2020

@larry_barrett looks like instead of specifically naming the hard drive you can use localhost instead.

file://localhost/Applications/PDFelement.app now works, the application icon shows up in the Dock


Forum|alt.badge.img+8
  • Valued Contributor
  • 122 replies
  • September 21, 2021

Maybe that helps:
Under Big Sur this works (at the moment)
file:///System/Applications/Utilities/Terminal.app/


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings