0

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

Manoj
  • 11
  • 1
  • 2

1 Answers1

2

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.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147