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")) {