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.
Solved! Go to Solution.
@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.
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.
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)
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.
@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