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