Move Environment.set_application_name call before the main window creation