When I ran loginitems -l under su -l $OTHER_REDACTED_USER, I got the following error from osascript:
/usr/local/bin/loginitems-ls:68:72: execution error: An error of type -10810 has occurred. (-10810)
I suspect that this probably has to do with the fact that su does something funny and creates an execution environment that loginitems wasn't expecting. I don't recognize and couldn't find any documentation on that particular error code, though, so good luck if you decide to chase down the root cause of this problem. In the meantime, I'll just switch users to use loginitems under other accounts.
When I ran
loginitems -lundersu -l $OTHER_REDACTED_USER, I got the following error fromosascript:I suspect that this probably has to do with the fact that
sudoes something funny and creates an execution environment thatloginitemswasn't expecting. I don't recognize and couldn't find any documentation on that particular error code, though, so good luck if you decide to chase down the root cause of this problem. In the meantime, I'll just switch users to useloginitemsunder other accounts.