Skip to content

Commit

Permalink
vboxwrapper (Mac): fix startup failure on Mac
Browse files Browse the repository at this point in the history
The VBox home dir (where it keeps its files) is
"/Library/Application Support/BOINC Data/.VirtualBox/",
not ~/.Virtualbox (the latter may be inaccessible)
  • Loading branch information
davidpanderson committed Jan 21, 2025
1 parent 92466ed commit de9b00b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/vboxwrapper/vbox_vboxmanage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ int VBOX_VM::initialize() {
}
#endif

// Determine the VirtualBox home directory.
// Determine the 'VirtualBox home directory'.
// NOTE: I'm not sure this is relevant; see
// https://docs.oracle.com/en/virtualization/virtualbox/6.1/admin/TechnicalBackground.html#3.1.3.-Summary-of-Configuration-Data-Locations
//
Expand All @@ -116,6 +116,8 @@ int VBOX_VM::initialize() {
vboxlog_msg("no USERPROFILE - exiting");
exit(1);
}
#elif __APPLE__
home = "/Library/Application Support/BOINC Data";
#else
home = getenv("HOME");
if (home == NULL) {
Expand Down

0 comments on commit de9b00b

Please sign in to comment.