[prev in list] [next in list] [prev in thread] [next in thread] 

List:       macports-dev
Subject:    Re: get user's home
From:       Joshua Root <jmr () macports ! org>
Date:       2017-08-05 8:00:20
Message-ID: 332ab7b5-f180-3f36-c002-924886175b08 () macports ! org
[Download RAW message or body]

On 2017-8-5 07:14 , db wrote:
> On 4 Aug 2017, at 22:58, Joshua Root <jmr@macports.org> wrote:
> > Suppose a port is built on the buildbot. The user is 'buildbot' and so the value \
> > of $user_home will be something like '/Users/buildbot'.
> 
> During testing I didn't thoroughly checked that env var there. I suppose, it could \
> be deleted or set to nil and left to the user to set it himself. As I said, I wrote \
> the port for me, and uploaded it for others to test, as I couldn't figure out a \
> (better) way to set it in the startup item and didn't find documentation on how \
> macports would handle this case.

I don't think there is a good way to do it if the user's home directory 
must be encoded into the plist. But I suspect that is not the case, and 
Rainer has mentioned a good alternative in the ticket.

- Josh


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic