Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Faulty assumption that all users have $home in /Users in SplashBuddy.launch.sh #73

Open
jby opened this issue Mar 16, 2018 · 2 comments
Labels

Comments

@jby
Copy link

jby commented Mar 16, 2018

The file /Library/Application\ Support/SplashBuddy/SplashBuddy.launch.sh assumes that whatever user is the $loggedInUser has its $home in /Users/$user:

doneFile="/Users/${loggedInUser}/Library/Containers/io.fti.SplashBuddy/Data/Library/.SplashBuddyDone"

Hidden users have their $home in /var/$user which makes the .SplashBuddyDone-file impossible to find for such a user - making SplashBuddy respawn indefinitely regardless of its existens.

@jby
Copy link
Author

jby commented Mar 20, 2018

Workaround:

sudo mkdir -p /Users/$user/Library/Containers/io.fti.SplashBuddy/Data/Library/
sudo touch /Users/$user/Library/Containers/io.fti.SplashBuddy/Data/Library/.SplashBuddyDone

@canalnoises
Copy link

I think my pull request (above) addresses this issue. I added a $homeDir variable that is populated by the home directory as pulled from dscl...

homeDir=$(/usr/bin/dscl . read /Users/${loggedInUser} NFSHomeDirectory | /usr/bin/awk '{print $2}')

...and changed the path in $doneFile to use ${homeDir} instead of /Users/${loggedInUser}.

canalnoises added a commit to canalnoises/SplashBuddy that referenced this issue Nov 17, 2020
Adds compatibility for users that have their home directory in a non-standard location.
canalnoises added a commit to canalnoises/SplashBuddy that referenced this issue Nov 17, 2020
Finds user's home directory with dscl (Issue macadmins#73)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants