Determine the type of an error and info message from the backend
Make the XSession script path configurable