Ubuntu 16.04 Dolphinのファイルのプロパティの「File Type Options」が動作しない

動かない理由は不明だが関連付けの変更はできた。


古いマシンに Ubuntu 12.10 が入ったままになっていて、そっちでは正しく動いていたのでそれを動かしたりして調べた。

その古いマシンでは設定ウィンドウのタイトルが「... - KEditFileType」となっていて、ps コマンドで探してみると

/usr/bin/keditfiletype --parent 50331822 text/plain

のようなプロセスが見つかる。

keditfiletype 自体はおそらく Dolphin をインストールした時に一緒にインストールされたのか、 /usr/bin の下に入っている。

で、 /usr/bin/keditfiletype text/plain のように自分で実行してやると、設定ウィンドウが開いて設定の変更・保存ができた。
設定は ~/.local/share/applications/mimeapps.list に保存される。


kcmshell4 filetypes でも設定できた。あらかじめ mimetype が分かっていなくてもキーワードで検索できるのでこっちの方が便利かも。

参考

file type options under properties on dolphin does not work. Ubuntu 16.04 - Ask Ubuntu
http://askubuntu.com/questions/800408/file-type-options-under-properties-on-dolphin-does-not-work-ubuntu-16-04/802177

Where does dolphin store file association information? • KDE Community Forums
https://forum.kde.org/viewtopic.php?f=224&t=129534

default programs - How to change file association for files opened in Dolphin from command line in GNOME? - Ask Ubuntu
http://askubuntu.com/questions/165618/how-to-change-file-association-for-files-opened-in-dolphin-from-command-line-in