2.0

Table Of Contents
VMware, Inc. 163
Chapter 6 Setting and Using Policies and Customizing VMware Player
# (a ficticious environment variable used for this sample) and returns TRUE
if the user
# is allowed to run, and FALSE otherwise.
#
# Input to script:
# None.
#
# Returns:
# TRUE if username is on white list.
# FALSE if username is not on white list or is undefined.
#
# Expected output:
# One of the strings "TRUE" or "FALSE"
#
#
my @white_list = ("alan", "bob", "mary", "sonia", "chris");
my $username = $ENV{TEST_USERNAME};
if (! defined $username) {
print "FALSE";
exit(0);
}
my @grepNames = grep(/$username/, @white_list);
if (@grepNames == 1) {
print "TRUE";
exit(0);
}
print "FALSE";
exit(0);
Customizing the VMware Player Interface
YoumaycustomizeseveralaspectsoftheVMwarePlayeruserinterface,includingthe
textthatappearsinthetitlebarandthewayremovabledevicesarerepresentedinthe
interface.
Yousavethesecustomizationsinatextfileandidentifythattextfile,calledtheskinfile,
byaddingaline
tothepreferences.inifileintheprojectfolder.
Creating and Specifying the Skin File
Eachlineintheskinfilehasthefollowingform:
parameter = "value"
Tocommentoutalineintheskinfile,beginthelinewiththe#sign.