[longomatch] fix paths for when we are using bundles
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] fix paths for when we are using bundles
- Date: Fri, 7 Sep 2012 14:46:41 +0000 (UTC)
commit c9babc1f00a3630cfd0b59c850d79b7e1f996894
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 7 16:46:24 2012 +0200
fix paths for when we are using bundles
LongoMatch.Services/Services/Core.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/Core.cs b/LongoMatch.Services/Services/Core.cs
index abf304f..b8c708a 100644
--- a/LongoMatch.Services/Services/Core.cs
+++ b/LongoMatch.Services/Services/Core.cs
@@ -154,7 +154,10 @@ namespace LongoMatch.Services
private static void SetupBaseDir() {
string home;
- Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../../");
+ if (Environment.OSVersion.Platform != PlatformID.Linux)
+ Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,"../");
+ else
+ Config.baseDirectory = System.IO.Path.Combine(System.AppDomain.CurrentDomain.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]