Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch viewer in background and discard output #32

Merged
merged 3 commits into from
Oct 25, 2019

Conversation

n-st
Copy link
Contributor

@n-st n-st commented Apr 27, 2019

With this, the user interface no longer becomes unresponsive when the external viewer is blocking (#26), and the interface is no longer garbled by output from the external viewer (#25).

Previously, paperboy checked the output from a viewer launch attempt to detect if the launch failed (due to errors or because the viewer command wasn't available on the system).

This change sacrifices the error detection; it only checks (separately, beforehand) whether the viewer command exists. This should be sufficient, as any launch problems that would cause an error return code (non-existent file, insufficient permissions, insufficient memory, …) would affect all viewers anyway.

n-st added 3 commits April 27, 2019 16:00
This prevents paperboy's UI from becoming unresponsive while the external
viewer is running. This also makes it possible to have multiple viewer
instances running at the same time.
Easier extensibility than with specialised code for each one.
@2mol 2mol changed the base branch from master to dev-1.3 October 25, 2019 13:22
@2mol 2mol merged commit cdb0424 into 2mol:dev-1.3 Oct 25, 2019
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.

2 participants