Exemplo n.º 1
0
        public static string GetSessionBusAddressFromSharedMemory()
        {
            string result = OSHelpers.ReadSharedMemoryString("DBusDaemonAddressInfo", 255);

            if (String.IsNullOrEmpty(result))
            {
                result = OSHelpers.ReadSharedMemoryString("DBusDaemonAddressInfoDebug", 255);                  // a DEBUG build of the daemon uses this different address...
            }
            return(result);
        }
Exemplo n.º 2
0
        public static string GetSessionBusAddressFromSharedMemory(string suffix = "")
        {
            string result = OSHelpers.ReadSharedMemoryString(string.Format("DBusDaemonAddressInfo{0}", suffix));

            if (String.IsNullOrEmpty(result))
            {
                result = OSHelpers.ReadSharedMemoryString(string.Format("DBusDaemonAddressInfoDebug{0}", suffix));                  // a DEBUG build of the daemon uses this different address...
            }
            return(result);
        }