gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

conn_windows.go (277B)


      1 //+build windows
      2 
      3 package dbus
      4 
      5 import "os"
      6 
      7 const defaultSystemBusAddress = "tcp:host=127.0.0.1,port=12434"
      8 
      9 func getSystemBusPlatformAddress() string {
     10 	address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
     11 	if address != "" {
     12 		return address
     13 	}
     14 	return defaultSystemBusAddress
     15 }