Skip to main content
Solved

Jamfhelper window won't load icon in Ventura 13.0.1

  • December 5, 2022
  • 5 replies
  • 26 views

skythrock
Forum|alt.badge.img+6

Having a bit of a weird issue. So I have this script that pops a notification box open on check-in, and it's working fine, except that it won't display the branding icon in the box. It's probably easier to show than to tell, so see below (executing this script in macOS Ventura 13.0.1):

 

jamfHelper="/Library/Application Support/JAMF/bin/jamfHelper.app/Contents/MacOS/jamfHelper" windowType="hud" description="Insert description here (edited for the sake of this forum post)" icon="~/Library/Application\\ Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png" #this path is accurate title="macOS Update Required" alignDescription="left" alignHeading="center" button1="OK" timeout="600" window=$("$jamfHelper" -windowType "$windowType" -lockHUD -title "$title" -timeout "$timeout" -icon "$icon" -description "$description" -alignDescription "$alignDescription" -alignHeading "$alignHeading" -button1 "$button1")

 

What am I doing wrong?

Best answer by skythrock

In my experience, Jamf doesn't like the current user being represented by ~

I would change this to a variable. something like...

currentUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

icon="$currentUser/Library/Application\\ Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png" #this path is accurate

 

Hopefully this helps. 


Nice, thanks for this! I ended up combining yours and @YanW's suggestions. This syntax gave me the result I was looking for:

icon="Users/$loggedInUser/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png"

 

5 replies

Forum|alt.badge.img+6
  • New Contributor
  • 15 replies
  • December 5, 2022

In my experience, Jamf doesn't like the current user being represented by ~

I would change this to a variable. something like...

currentUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

icon="$currentUser/Library/Application\\ Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png" #this path is accurate

 

Hopefully this helps. 


YanW
Forum|alt.badge.img+11
  • Contributor
  • 180 replies
  • December 6, 2022

maybe try either removing the \\ between Application Support or the ""


scottb
Forum|alt.badge.img+18
  • Valued Contributor
  • 1287 replies
  • December 6, 2022

maybe try either removing the \\ between Application Support or the ""


Yeah, one or the other there...I've had that cause troubles with some items over the years...


skythrock
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 13 replies
  • Answer
  • December 8, 2022

In my experience, Jamf doesn't like the current user being represented by ~

I would change this to a variable. something like...

currentUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

icon="$currentUser/Library/Application\\ Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png" #this path is accurate

 

Hopefully this helps. 


Nice, thanks for this! I ended up combining yours and @YanW's suggestions. This syntax gave me the result I was looking for:

icon="Users/$loggedInUser/Library/Application Support/com.jamfsoftware.selfservice.mac/Documents/Images/brandingimage.png"

 


skythrock
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 13 replies
  • December 8, 2022

maybe try either removing the \\ between Application Support or the ""


Thanks for this tip!