As we're now using launchctl to launch the backend and client processes, there's no need for the user-accessible login item routines.

remove_login_item has been left, to allow cleaning up of previous installs.

(cherry picked from commit 259b664269)
This commit is contained in:
Moisie2000 2021-12-26 18:01:30 +00:00 committed by Martin
parent aaa814e427
commit d76d5417e4

View File

@ -21,19 +21,6 @@ fi
/bin/launchctl load "/Library/LaunchDaemons/org.urbackup.client.plist"
/bin/launchctl start "org.urbackup.client.backend"
if test ! -e "$1.silent"
then
#There is user interaction required here :(
"$2/Contents/MacOS/urbackupclientgui" register_login_item
else
for console_user in $(ps aux | grep "loginwindow" | grep -v grep | awk '{print $1;}')
do
if [ "$console_user" != "root" ]
then
sudo -u "$console_user" "$2/Contents/MacOS/urbackupclientgui" daemon
fi
done
fi
/bin/launchctl load "/Library/LaunchAgents/org.urbackup.client.plist"
/bin/launchctl start "org.urbackup.client.frontend"