Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Mac Software
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-04-2024, 08:19 AM   #1
DanielSznicer
DisplayLink Tech Support
 
DanielSznicer's Avatar
 
Join Date: Mar 2020
Posts: 206
Default

Quote:
Originally Posted by donmontalvo View Post
The last few lines in your `postinstall` script in your flat/signed PKG is incorrect.

The intent is to open the app as the current user, whereas most enterprise users are not administrators.

This is bad:

open -a "/Applications/DisplayLink Manager.app"

This is good:

currentUser=$(/usr/bin/stat -f %Su /dev/console);
/bin/launchctl asuser $(/usr/bin/id -u "$currentUser") /usr/bin/open "/Applications/DisplayLink Manager.app"


In enterprise environments that use Jamf Pro to manage their fleet of macOS computers, all policies run as root.

Not even root can open an app in the user space (as the current user), so policies fail with error. The above provides the fix.

Hope to see 1.10.2 with the fix soon.
Hey, thanks for pointing this out. We are aware of this issue and will address it in an upcoming release.
DanielSznicer is offline   Reply With Quote
Reply

Tags
hireacontractor, learnmacsyntax, learntounix, peerreviewyourwork


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.