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

Attachments cannot be opened by associated applications. #57

Closed
swordgreen opened this issue Nov 14, 2018 · 1 comment
Closed

Attachments cannot be opened by associated applications. #57

swordgreen opened this issue Nov 14, 2018 · 1 comment

Comments

@swordgreen
Copy link

@swordgreen swordgreen commented Nov 14, 2018

Expected vs. actual behavior

When I click an attachment in a note, I hope the attachment will be opened by an associated software application that registered in the system. But in nixnote2, all attachments are associated with Thunderbird mail application except PDF files and Images.

How can I define preferred applications for different types of files in Nixnote2?

Specifications

I am using Version: 2018110617342.1.0ubuntu16.04.1 installed from PPA.

@robert7

This comment has been minimized.

Copy link
Owner

@robert7 robert7 commented Nov 16, 2018

Hi,
I checked the source code, NixNote doesn't have any logic regarding file associations. The attachment file is simply stored on local disk (as local file), then Qt function QDesktopServices::openUrl is called with the local file.

This is from the docs:

Opens the given url in the appropriate Web browser for the user's desktop environment, and returns true if successful; otherwise returns false. If the URL is a reference to a local file (i.e., the URL scheme is "file") then it will be opened with a suitable application instead of a Web browser.

So basically operating system defaults apply. I did some further checks on Ubuntu 18.04 with the app installed from PPA... I created sample Office Writer file... this opens same way from Nautilus and from Nixnote.

Screenshoots:
attach1-screen_20181115_03
attach2-screen_20181115_02
attach3-screen_20181115_04
attach4-screen_20181115_04

So I suggest check file associations on your operating system. You can compare what opens on particular local file with file manager and what opens on NixNote. Should be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.