I saw the following question, but I can't comment yet. So I decided to create a separate one.
I have both transmission
and deluge
installed. And I have no association for application/x-bittorrent
mime type, based on contents of /usr/share/gnome/applications/defaults.list
and ~/.local/share/applications/mimeapps.list
. But it seems .torrent
extension has association and it's transmission
. That is when I double-click a .torrent
file, transmission
is opened. The same goes for when I open it in chromium
.
The question is how come it is transmission
? Why not deluge
? Both have this mime type in their .desktop
files. Are the associations stored somewhere else?
UPD
$ egrep bittorrent /usr/share/applications/mimeapps.list
egrep: /usr/share/applications/mimeapps.list: No such file or directory
$ egrep bittorrent /usr/share/applications/mimeinfo.cache
application/x-bittorrent=transmission-gtk.desktop;deluge.desktop;
$ egrep bittorrent /usr/share/applications/defaults.list
$ egrep bittorrent /home/yuri/.local/share/applications/mimeapps.list
$ egrep bittorrent /home/yuri/.local/share/applications/defaults.list
egrep: /home/yuri/.local/share/applications/defaults.list: No such file or directory
The default is transmission
. Changing order in /usr/share/applications/mimeinfo.cache
changes the default application. Probably one shouldn't rely on this behavior.
~/.gnome/share/apps
. Different distros and different desktops do this slightly differently. freedesktop.org has a spec-of-sorts. You've found the two places typical for Ubuntu. If they're both empty, I would guess the system has to pick one, and has some deterministic way of doing that.~/.local/.../mimeapps.list
is Ubuntu's standard user-level override, and that's where AliNa's dialog stores its settings.