Changeset 101227 in vbox
- Timestamp:
- Sep 21, 2023 7:14:56 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostart-posix.cpp
r98103 r101227 62 62 #include <iprt/ctype.h> 63 63 #include <iprt/dir.h> 64 #include <iprt/env.h> 64 65 65 66 #include <signal.h> … … 443 444 PCFGAST pCfgAstUser = NULL; 444 445 PCFGAST pCfgAstPolicy = NULL; 446 PCFGAST pCfgAstUserHome = NULL; 445 447 bool fAllow = false; 446 448 … … 487 489 else 488 490 return RTMsgErrorExit(RTEXITCODE_FAILURE, "'allow' must be either 'true' or 'false'"); 491 } 492 pCfgAstUserHome = autostartConfigAstGetByName(pCfgAstUser, "VBOX_USER_HOME"); 493 if ( pCfgAstUserHome 494 && pCfgAstUserHome->enmType == CFGASTNODETYPE_KEYVALUE) 495 { 496 rc = RTEnvSet("VBOX_USER_HOME", pCfgAstUserHome->u.KeyValue.aszValue); 497 if (RT_FAILURE(rc)) 498 return RTMsgErrorExit(RTEXITCODE_FAILURE, "'VBOX_USER_HOME' could not be set for this user"); 489 499 } 490 500 }
Note:
See TracChangeset
for help on using the changeset viewer.

