Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Mac Software

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-28-2021, 03:44 AM   #1
donmontalvo
Junior Member
 
Join Date: Jan 2017
Posts: 7
Post DisplayLink 1.4 (defaults can now autologin)

Maybe its me, but I had a hard time finding this article:

Enabling/Disabling DisplayLink Manager autostart via command line
https://support.displaylink.com/know...er-autostart-v

Basically defaults commands can be used to launch DisplayLink on behalf of the user. This means Configuration Profiles can be used if you're managing Macs using an MDM server (Jamf Pro, WS1, etc.).

This article should be considered a "hot" item for those of us who manage/support macOS in enterprise.
donmontalvo is offline   Reply With Quote
Old 07-29-2021, 12:16 PM   #2
JakubDabrowski
DisplayLink Tech Support
 
JakubDabrowski's Avatar
 
Join Date: Jan 2020
Location: Katowice, Poland
Posts: 256
Default

Hello donmontalvo,

Thank you for your feedback on that.

If you have not seen one of our newer FAQs about deploying DisplayLink on MacOS with Jamf you can click on that link.

In case of any questions, feel free to post your questions here.

Kind regards,
Jakub
JakubDabrowski is offline   Reply With Quote
Old 07-29-2021, 09:09 PM   #3
donmontalvo
Junior Member
 
Join Date: Jan 2017
Posts: 7
Default

The Jamf Pro "files and folders" payload isn't intended to launch applications. That would likely create a significant security risk.

Apple recommends using a Launch Agent. With that said, the one that comes with the DisplayLinkLoginScreenExtension.pkg package doesn't seem to work.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleVersion</key>
	<string>1.4.0 (120)</string>
	<key>Disabled</key>
	<false/>
	<key>KeepAlive</key>
	<true/>
	<key>Label</key>
	<string>com.displaylink.DisplayLinkUserAgent</string>
	<key>LimitLoadToSessionType</key>
	<string>LoginWindow</string>
	<key>ProcessType</key>
	<string>Interactive</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/bin/open</string>
		<string>-W</string>
		<string>/Applications/DisplayLink Manager.app</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
	<key>ThrottleInterval</key>
	<integer>5</integer>
	<key>Umask</key>
	<integer>0</integer>
</dict>
</plist>
It's a moot point now, since 1.4 provides a method that uses the defaults command. It's a huge improvement that allows the use of a Configuration Profile using Applications & Settings payload, using Jamf Pro.

1. Launch Terminal and run this to create a preference file:
defaults write /private/tmp/com.displaylink.DisplayLinkUserAgent AppAutostart 1
Then run this to convert the preference file to an uploadeable format:
plutil -convert xml1 /private/tmp/com.displaylink.DisplayLinkUserAgent.plist
Then cat the file to make sure it is readable, if it comes back with gibberish, it wasn't converted properly:
cat /private/tmp/com.displaylink.DisplayLinkUserAgent.plist
2. Create a new Configuration Profile using the "Application & Custom Settings" payload, and upload /private/tmp/com.displaylink.DisplayLinkUserAgent.plist to the payload, using com.displaylink.DisplayLinkUserAgent as the preference domain, scoped to all computers.

3. There is no step 3.

Thanks,
Don

Last edited by donmontalvo; 07-29-2021 at 09:49 PM.
donmontalvo is offline   Reply With Quote
Old 07-29-2021, 09:30 PM   #4
donmontalvo
Junior Member
 
Join Date: Jan 2017
Posts: 7
Default

Attached screenshots.
Attached Images
File Type: jpg Step-1-terminal-commands.jpg (18.6 KB, 0 views)
File Type: jpg Step-2-upload.jpg (12.5 KB, 0 views)
File Type: jpg Step-3-save-the-configuration-profile.jpg (12.6 KB, 0 views)
File Type: jpg Step-4-scope.jpg (8.6 KB, 0 views)
donmontalvo is offline   Reply With Quote
Old 07-30-2021, 11:31 AM   #5
Wozzy
Member
 
Join Date: Mar 2018
Posts: 58
Default

Great post @donmontalvo

Need more of this on here.
Wozzy is offline   Reply With Quote
Old 07-30-2021, 12:52 PM   #6
donmontalvo
Junior Member
 
Join Date: Jan 2017
Posts: 7
Default

We’ve been working with Jakob on this, he is incredible.
donmontalvo is offline   Reply With Quote
Reply

Tags
command line, configuration profile, defaults, login

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:37 PM.


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