Fix GTK launcher to change to correct working directory.

This commit is contained in:
Matthew Bowra-Dean
2011-01-04 18:38:31 +13:00
committed by Chris Forbes
parent 2885fbb99b
commit 6998871adf
2 changed files with 4 additions and 3 deletions

View File

@@ -434,7 +434,10 @@ int main(int argc, char ** argv)
{
GtkWidget * hbox1, * hbox2, * vbox;
int res = chdir("../share/openra");
int res = chdir("/usr/share/openra");
if (0 != res)
res = chdir("/usr/local/share/openra");
if (0 != res)
{