Fix GTK launcher to change to correct working directory.
This commit is contained in:
committed by
Chris Forbes
parent
2885fbb99b
commit
6998871adf
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version={VERSION}
|
||||
@@ -8,4 +7,3 @@ Icon=openra
|
||||
Exec=/usr/bin/openra
|
||||
Terminal=false
|
||||
Categories=Game;
|
||||
Name[en_NZ]=openra.desktop
|
||||
|
||||
Reference in New Issue
Block a user