[mojosetup] Plans for adding system menu entries

Ryan C. Gordon icculus at icculus.org
Sun Jan 20 07:11:35 EST 2008

> Checking the homedir in a script is risky, though, to be sure...at least 
> on Mac OS X, for example, there is no /root ... it's in 
> /private/var/root instead.
> We should at least expose the uid/euid, since what we seem to care about 
> here is "is this user root or not?" ... but of course the real solution 
> is to move this specific functionality into MojoSetup.

The latest in Subversion can now get this information in scripts:

    if MojoSetup.info.euid == 0 then
        MojoSetup.msgbox("please note", "program is running as root.")

You can check MojoSetup.info.uid, MojoSetup.info.euid, and 
MojoSetup.info.gid ... all do pretty much what you'd expect.


More information about the mojosetup mailing list