package tray import ( "errors" "os" "path/filepath" "gitea.apointless.space/bsncubed/ipswap/internal/config" "gitea.apointless.space/bsncubed/ipswap/internal/netcfg" ) // isElevationErr reports whether a failed apply was refused for lack of // administrator rights, which is the one failure that has a useful next step. func isElevationErr(err error) bool { return errors.Is(err, netcfg.ErrElevationRequired) } // tempDir is where update downloads land. func tempDir() string { return filepath.Join(os.TempDir(), config.AppName) }