SUMMARY KMail ignores file association for .pot, always opens in Libreoffice Impress. STEPS TO REPRODUCE 1. Make sure .pot files are associated with Lokalize. 2. In KMail, open an email with an attachment file <something>.pot. 3. Click on the attachment. OBSERVED RESULT A dialog is opened where a button says "Open with LibreOffice Impress". At the same time Dolphin opens .pot files in Lokalize by default. EXPECTED RESULT A dialog is opened where a button says "Open with Lokalize". SOFTWARE/OS VERSIONS Операционная система: Fedora 30 Версия KDE Plasma: 5.15.5 Версия KDE Frameworks: 5.59.0 Версия Qt: 5.12.4 Версия ядра: 5.1.16-300.fc30.x86_64 Архитектура: 64-битная Процессоры: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz Память: 15,4 ГиБ ОЗУ ADDITIONAL INFORMATION
Nothing particularly wrong, org.kde.lokalize.desktop contains: MimeType=application/x-xliff;text/x-gettext-translation;application/x-lokalize-project; The mimetype for template files is x-gettext-translation-template. iow, lokalize doesn't support template files, only .po ones. Confirmed by looking for x-gettext-translation-template after running 'kcmshell5 filetypes'
(In reply to Christophe Giboudeaux from comment #1) > Nothing particularly wrong, org.kde.lokalize.desktop contains: > > MimeType=application/x-xliff;text/x-gettext-translation;application/x- > lokalize-project; > > The mimetype for template files is x-gettext-translation-template. > > iow, lokalize doesn't support template files, only .po ones. > > Confirmed by looking for x-gettext-translation-template after running > 'kcmshell5 filetypes' You need to add x-gettext-translation-template manually, see Step 1 in "STEPS TO REPRODUCE".
No issue in KMail if I choose Open With, select lokalize and check "remember application association..." lokalize is added to the list of suitable applications for template files and KMail suggests this application afterwards. In KMail settings, security tabs, then miscellaneous, I suggest clicking on the "re-enable all 'Do not ask again' warnings"
(In reply to Christophe Giboudeaux from comment #3) > No issue in KMail if I choose Open With, select lokalize and check "remember > application association..." > > lokalize is added to the list of suitable applications for template files > and KMail suggests this application afterwards. I did the same: clicked "Open With", checked "remember application association". However KMail keeps suggesting LibreOffice Impress, even after I restarted KMail. Do you have LibreOffice Impress installed?
Impress is installed, but is not in the list of applications supporting this mimetype (libreoffice writer appears). Let's try something else, please paste the output of 'ktraderclient5 --mimetype text/x-gettext-translation-template'
Created attachment 121687 [details] ktraderclient5 output
Still nothing wrong. Things you can try: - Quit KMail, rename the ~/.cache folder, run kbuildsycoca5 --noincremental, retry Another test: - Quit KMail, rename ~/.config/kmail2rc, retry