Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable time sync feature by default #47

Merged
merged 1 commit into from
Apr 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions parallels.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,32 @@ func (d *Driver) Create() error {
return err
}

// Disable Time Sync feature because it has an issue with timezones.
// TODO: Turn it back as soon as Time Sync is fixed in Parallels Tools
if err := prlctl("set", d.MachineName, "--time-sync", "off"); err != nil {
return err
}

if ver >= 11 {
// Enable headless mode
if err := prlctl("set", d.MachineName,
"--startup-view", "headless"); err != nil {
return err
}

// Don't share any additional folders
if err := prlctl("set", d.MachineName,
"--shf-host-defined", "off"); err != nil {
return err
}

// Enable time sync, don't touch timezone (this part is buggy)
if err := prlctl("set", d.MachineName, "--time-sync", "on"); err != nil {
return err
}
if err := prlctl("set", d.MachineName,
"--disable-timezone-sync", "on"); err != nil {
return err
}
} else {
// Disable time sync feature because it has an issue with timezones.
if err := prlctl("set", d.MachineName, "--time-sync", "off"); err != nil {
return err
}
}

// Configure Shared Folders
Expand All @@ -160,12 +174,6 @@ func (d *Driver) Create() error {
"--smart-mount", "off"); err != nil {
return err
}
if ver >= 11 {
if err := prlctl("set", d.MachineName,
"--shf-host-defined", "off"); err != nil {
return err
}
}

if !d.NoShare {
if err := prlctl("set", d.MachineName,
Expand Down