-1

I'm designing a GUI app using wxWidgets. My requirement is to open an image from within the app. For that I'm calling wxTheMimeTypesManager->GetFileTypeFromExtension(wxT("png")). Unfortunately, this is throwing an error telling Failed to connect to the session manager: SESSION_MANAGER environment variable not defined.

I went through the solution provided here but it was of no help. Any suggestions or workarounds would be appreciated.

Even when I do a echo $SESSION_MANAGER it turns out to be empty.

[EDIT]Currently using wXWidgets version 3.0.2 on Jessie

  • This question does not belong to Raspberry Pi. You should better ask at stackoverflow.com – Ingo Jul 17 at 8:57
  • You should specify the version of wxWidgets you are using. – Dmitry Grigoryev Jul 18 at 7:39
0

There is a fix which hides this error when $SESSION_MANAGER is not defined, so one solution would be to upgrade to the latest version of wxWidgets.

You could also install a session manager, but only do so if you need one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.