//go:build windows package main // systemInstallDataDir never diverts on Windows: the data folder is beside the // executable, full stop. That is what makes an OpsLog on a USB stick carry its // logbook with it, and an operator who copies the folder to a new PC find // everything already there. // // A copy dropped into Program Files is refused the write and told so (see // checkDataDirWritable) rather than quietly logging somewhere else, because // "where are my QSOs?" is a far worse afternoon than "move this folder". func systemInstallDataDir(besideExe string) (string, bool) { return "", false } // dataDirAdvice is what the operator is told when that folder cannot be written. const dataDirAdvice = "\n\nMove OpsLog.exe somewhere your account can write — a folder in Documents, or the desktop — and start it again. Program Files is refused to anything not running as administrator."