gtsocial-umbx

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

conn_unix.go (312B)


      1 //+build !windows,!solaris,!darwin
      2 
      3 package dbus
      4 
      5 import (
      6 	"os"
      7 )
      8 
      9 const defaultSystemBusAddress = "unix:path=/var/run/dbus/system_bus_socket"
     10 
     11 func getSystemBusPlatformAddress() string {
     12 	address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
     13 	if address != "" {
     14 		return address
     15 	}
     16 	return defaultSystemBusAddress
     17 }