Skip to content

Opens downloaded files when double-clicked as per Qubes recipe. #102

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

Closed
wants to merge 2 commits into from

Conversation

ntoll
Copy link
Contributor

@ntoll ntoll commented Nov 5, 2018

This PR fixes #20.

  • I've added tests as per the requirements for opening files on Qubes. PLEASE CHECK THIS ACTUALLY WORKS ON QUBES!
  • Since we're writing a Qt application, I've used the QProcess class to kick off the new process since it's only marginally simpler than the built-in Python equivalent.
  • If not running on Qubes, as requested, we just log the file was clicked to be opened.
  • Question: once opened, should we update the is_read attribute via the API? It should be trivial to add this action to this PR, just let me know.

@ntoll ntoll requested a review from redshiftzero November 5, 2018 12:07
@ntoll
Copy link
Contributor Author

ntoll commented Nov 5, 2018

Note: I've updated names of on_file_click -> on_file_download and what was on_file_download to on_file_downloaded.

@eloquence
Copy link
Member

Small note: For open actions, too, we should avoid the double-click pattern and stick to single-click.

# TODO: Set marked as read?
else: # pragma: no cover
# Non Qubes OS. Just log the event for now.
logger.info('Opening file "{}".'.format(message.filename))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

message.filename -> source_db_object.filename

@redshiftzero
Copy link
Contributor

merged this change as part of #113, thanks @ntoll !

@sssoleileraaa sssoleileraaa deleted the view-docs branch May 26, 2020 18:17
legoktm pushed a commit that referenced this pull request Dec 15, 2023
Update qrexec policy keyword characters
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.

Add support for viewing downloaded documents
3 participants