Skip to content

Conversation

guyfleeman
Copy link

@guyfleeman guyfleeman commented Sep 12, 2018

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.

@guyfleeman
Copy link
Author

An addition to the docs suggesting the installation of python3-PyQt5 might be in order, but it seemed like this might be sufficient an edge case to omit it from the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant