diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 780924b4eb..010ee269a7 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -504,6 +504,10 @@ bool wxApp::Initialize(int& argc, wxChar **argv) return false; } + // update internal arg[cv] as GTK+ may have removed processed options: + this->argc = argc; + this->argv = argv; + // we can not enter threads before gtk_init is done gdk_threads_enter();