[longomatch] finally fix prefix detection
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] finally fix prefix detection
- Date: Fri, 7 Sep 2012 16:03:13 +0000 (UTC)
commit d6068bc70914c1d1770d5202b078c2745d83769d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 7 18:02:53 2012 +0200
finally fix prefix detection
LongoMatch.Services/Services/Core.cs | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index b4f5396..9c8580c 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -154,11 +154,9 @@ namespace LongoMatch.Services
private static void SetupBaseDir() {
string home;
- if (Environment.OSVersion.Platform == PlatformID.MacOSX ||
- Environment.OSVersion.Platform == PlatformID.Win32NT)
- Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
- else
- Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");
+ Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
+ if (!System.IO.File.Exists(System.IO.Path.Combine(Config.baseDirectory, "share", "longomatch")))
+ Config.baseDirectory = System.IO.Path.Combine(Config.baseDirectory, "../");
/* Check for the magic file PORTABLE to check if it's a portable version
* and the config goes in the same folder as the binaries */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]