From 0c0494826204945c69c23111ff09d6d6fe9c9605 Mon Sep 17 00:00:00 2001 From: tzim Date: Mon, 4 Nov 2013 16:34:16 +0000 Subject: [PATCH] --- DMX-2.0/DMX-2.0.csproj | 1 + DMX-2.0/Main.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/DMX-2.0/DMX-2.0.csproj b/DMX-2.0/DMX-2.0.csproj index 5d49b8a..1659b7e 100644 --- a/DMX-2.0/DMX-2.0.csproj +++ b/DMX-2.0/DMX-2.0.csproj @@ -85,6 +85,7 @@ style.gtkrc + Always diff --git a/DMX-2.0/Main.cs b/DMX-2.0/Main.cs index 6b44feb..f73f452 100644 --- a/DMX-2.0/Main.cs +++ b/DMX-2.0/Main.cs @@ -10,7 +10,10 @@ namespace DMX2 Application.Init (); - if(System.IO.File.Exists("style.gtkrc")) Gtk.Rc.Parse("style.gtkrc"); + System.IO.Directory.SetCurrentDirectory ( (new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location)).DirectoryName); + + if(System.IO.File.Exists("style.gtkrc")) + Gtk.Rc.Parse("style.gtkrc"); else using (System.IO.Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("style.gtkrc")) {