[hyena] detect MeeGo



commit 7002f646247a643456efd46f8b53307ca4e35e98
Author: Aaron Bockover <abockover novell com>
Date:   Sun Mar 21 20:17:05 2010 -0400

    detect MeeGo

 src/Hyena/Hyena/PlatformDetection.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Hyena/Hyena/PlatformDetection.cs b/src/Hyena/Hyena/PlatformDetection.cs
index 303ce79..0b15ffa 100644
--- a/src/Hyena/Hyena/PlatformDetection.cs
+++ b/src/Hyena/Hyena/PlatformDetection.cs
@@ -37,7 +37,7 @@ namespace Hyena
         public static readonly bool IsWindows;
         public static readonly bool IsLinux;
         public static readonly bool IsUnix;
-        public static readonly bool IsMoblin;
+        public static readonly bool IsMeeGo;
 
         public static readonly string PosixSystemName;
         public static readonly string SystemName;
@@ -90,7 +90,7 @@ namespace Hyena
 
             SystemName = PosixSystemName;
 
-            // FIXME: probe the root X11 window for Moblin properties
+            IsMeeGo = System.IO.File.Exists ("/etc/meego-release") || !String.IsNullOrEmpty ("MEEGO");
         }
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]