github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/status/status_windows.go (about)

     1  // Copyright 2019 Keybase, Inc. All rights reserved. Use of
     2  // this source code is governed by the included BSD license.
     3  
     4  //go:build windows
     5  // +build windows
     6  
     7  package status
     8  
     9  import (
    10  	"github.com/keybase/client/go/libkb"
    11  	"github.com/keybase/client/go/protocol/keybase1"
    12  )
    13  
    14  func osSpecific(mctx libkb.MetaContext, status *keybase1.FullStatus) error {
    15  	// TODO: on darwin, install.KeybaseServiceStatus() is implemented to get pid for service and kbfs.
    16  	// This is currently the best way to determine if KBFS is running, so other OS's should implement
    17  	// it.
    18  	productVersion, _, err := libkb.OSVersionAndBuild()
    19  	if err != nil {
    20  		mctx.Debug("Error determining OS version: %s", err)
    21  	}
    22  	status.ExtStatus.PlatformInfo.OsVersion = productVersion
    23  	return nil
    24  }