Anno domini 2021 Sat, 6 Feb 13:48:52 +0100
phiebie(a)drei.at scripsit:
This is my favourite PDF-viewer and as such I have in
my mimeinfo.cache
the entry "application/pdf=kpdf.desktop". Works perfect....until I
update libreoffice-draw or google-chrome. At that moment the kpdf-entry
gets erased and instead of it 'draw' or 'chrome' appears or even both.
And I have to correct this entry manually again and again.
Is there a possibility to add in the installscript of kpdf the same
mechanism as in chrome and draw - a delete/replace statement?
Regards, Peter.
You can add a oneliner to your .xinitrc or .xsessionrc, e.g:
sed "s#\(application/pdf=\).*$#\1kpdf.desktop#' -i
.local/share/applications/mimeinfo.cache
Nik
--
Please do not email me anything that you are not comfortable also sharing with the NSA,
CIA ...