Posted on 04-26-2015 02:15 PM
Okay, I just know I'm missing something simple. How do I get something just on the current user's desktop?
I can put it on all user's Desktop, and in the User Template folder. But I need to put a file just on the current user's desktop. :-
I guess I could put it in /tmp and use a post-install script to move it to the current user's desktop. Is that the best option?
Solved! Go to Solution.
Posted on 04-26-2015 05:33 PM
I guess I could put it in /tmp and use a post-install script to move it to the current user's desktop. Is that the best option?
Yep, that's your best option. The built in option (FEU) will hit all existing home directories, not just the current user, as you've already surmised.
Posted on 04-26-2015 05:33 PM
I guess I could put it in /tmp and use a post-install script to move it to the current user's desktop. Is that the best option?
Yep, that's your best option. The built in option (FEU) will hit all existing home directories, not just the current user, as you've already surmised.
Posted on 04-27-2015 07:30 AM
Here is a script that you could use, you could make this run every time a user logs in to ensure that they have it on their desktop
#!/bin/sh
loggedInUser=""
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
cp /tmp/filename /Users/$loggedInUser/Desktop/filename
chown $loggedInUser /Users/$loggedInUser/Desktop/filename
exit
Posted on 04-29-2015 08:27 AM
Thanks for the script @jjones . I was just starting to write my own clunky version. :D
Posted on 07-22-2015 09:50 AM
Thanks for this, guys. Several of our faculty members manage classrooms in our labs and I was trying to figure out a way they could install Apple Remote Desktop themselves through Self Service, while not giving other users that may use the lab admin station access to the application.