Add Partial Fix for Linux Render Issues, Add Simulator Run Script, and Update Docs #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On some Linux DEs PyQt4 still doesn't release input hooks properly. The call to manually restore them has no effect. This causes isolated issues for some users that are particularly painful if they aren't able to force refresh the DE. I had trouble with this on 18.04, i3, in a VM. The fix is to search for PyQt5 availability and manually set it as the renderer (although this usually isn't necessary) if available. Linux users without this option should receive a warning. The render backend must be set before any of the submodules are imported.
This patch will force PyQt5 renderer if available and will warn only Linux users if they aren't on PyQt5. It suggests packages for Debian and Fedora if the warning is displayed. To address the issue of setting the backend before import, a run script has been added that ensures the change is made before import dependencies are evaluated. Combined with the documentation, it also makes the sim a little friendlier to use for new folks.