There are two reasons for that;
a) the xdg-utils pacakge used to be broken but is fixed now (xdg-utils 1.1.1)
b) the mime type for text is still anchored to the notes app
you can switch it from command line with the xdg-mime tools
In fact, if you type
xdg-mime query default text/plain
from the command line, you will get
jolla-notes-import.desktop
as a result. And if you check from the relative desktop file, youll see the mime anchorage there:
cat /usr/share/applications/jolla-notes-import.desktop
[Desktop Entry]
Type=Application
NoDisplay=true
Name=Plaintext and vNote File MimeHandler
Icon=icon-launcher-notes
Exec=invoker --type=silica-qt5 -s /usr/bin/jolla-notes
Comment=Sailfish MimeType handler for plain-text files and vNote files
MimeType=text/plain;text/x-vnote;
X-Maemo-Service=com.jolla.notes
X-Maemo-Object-Path=/
X-Maemo-Method=com.jolla.notes.importNoteFile
X-Desktop-File-Install-Version=0.20
The sailfish-office-openfile.desktop also has the mime assigned; I believe since xdg-utils supports only one default app, the notes one happens to be the last in the list and becomes it.
I tried
xdg-mime default sailfish-office-openfile.desktop text/plain
and even tho the mime of the office app anchors text/plain, the application cannot really handle it...
↧