From dc83532e02615a8952078522bd818ced778a228d Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 12 Jan 2009 21:26:44 +0000 Subject: [PATCH] Fix restarting after lang/options change (RestartAegisub()). (this is unix only) Originally committed to SVN as r2687. --- aegisub/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aegisub/utils.cpp b/aegisub/utils.cpp index 9ae079d5f..ff8902670 100644 --- a/aegisub/utils.cpp +++ b/aegisub/utils.cpp @@ -400,6 +400,7 @@ void RestartAegisub() { wxExecute(wxString::Format(_T("/usr/bin/open \"%s\""), wxString(bundle_path, wxConvUTF8))); free(bundle_path); #else - // someone fix this + wxStandardPaths stand; + wxExecute(stand.GetExecutablePath()); #endif }