This forum has been archived. All content is frozen. Please use KDE Discuss instead.

File associations don't stick, bug?

Tags: None
(comma "," separated)
User avatar
mutterburra
Registered Member
Posts
21
Karma
0

File associations don't stick, bug?

Mon Jan 25, 2016 11:57 am
Running Kubuntu 15.10 (but was happening in 15.04 too I think).

I'm keen to change the file associations for txt files so they open in Kate not LibreOffice Writer.

However both through properties dialog in dolphin and in File Associations in System Settings selections do not stick.

In system settings with the listing for txt, neither removing an application nor moving it up or down the priority order stick after clicking apply.

They revert back to the original order, re-appearing if removed.

I did manage to reallocated file associations for rtf files, and png files.

thoughts?

cheers and thanks in advance,
luebking
Karma
0
Check whether ~/.local/share/applications/mimeapps.list gets rewritten and run "kbuildsycoca5 --noincremental" from konsole and watch out for errors, notably on write permissons.
User avatar
mutterburra
Registered Member
Posts
21
Karma
0
wow, well ~/.local/share/applications/mimeapps.list does indeed get written appropriately.

" text/plain=org.kde.kate.desktop;libreoffice-writer.desktop;kde4-okularApplication_txt.desktop;wine-extension-ini.desktop;calibre-ebook-viewer.desktop;wine-extension-txt.desktop;calibre-gui.desktop; "

How, or rather, what is the best app to read that file referred to using "kbuildsycoca5 --noincremental" ? Kate & nano produce a very hard to read screen with warnings about invalid characters despite the utf-8 encoding.

No warnings are returned to the terminal.

thanks
User avatar
Rog131
Registered Member
Posts
828
Karma
10
About file associations

With the Arch Linux there has been problems as there are multiple mimeapps.lists: https://bbs.archlinux.org/viewtopic.php?id=204326

By the https://wiki.archlinux.org/index.php/de ... plications the mimeapps.list are looked up in the following order of paths:

$HOME/.config/$desktop-mimeapps.list
$HOME/.config/mimeapps.list
/etc/xdg/$desktop-mimeapps.list
/etc/xdg/mimeapps.list sysadmin
$HOME/.local/share/applications/$desktop-mimeapps.list
$HOME/.local/share/applications/mimeapps.list
/usr/local/share/applications/$desktop-mimeapps.list
/usr/share/applications/$desktop-mimeapps.list
/usr/local/share/applications/mimeapps.list
/usr/share/applications/mimeapps.list
User avatar
mutterburra
Registered Member
Posts
21
Karma
0
thanks everyone

changed the priority in $HOME/.config/mimeapps.list
from
text/plain= libreoffice-writer.desktop;focuswriter.desktop; org.kde.kate.desktop; kde4-okularApplication_txt.desktop;wine-extension-ini.desktop;
to
text/plain=org.kde.kate.desktop; libreoffice-writer.desktop;focuswriter.desktop;kde4-okularApplication_txt.desktop;wine-extension-ini.desktop;


now it sticks


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]