summaryrefslogtreecommitdiffstats
path: root/docs/source/how-to/set-mime-type.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/how-to/set-mime-type.md')
-rw-r--r--docs/source/how-to/set-mime-type.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/source/how-to/set-mime-type.md b/docs/source/how-to/set-mime-type.md
new file mode 100644
index 0000000..29bad15
--- /dev/null
+++ b/docs/source/how-to/set-mime-type.md
@@ -0,0 +1,24 @@
+# How to set Deluge as default torrent application
+
+## Check registered MIME types
+
+ gio mime application/x-bittorrent
+ gio mime x-scheme-handler/magnet
+
+## Set Deluge as default for MIME types
+
+ gio mime x-scheme-handler/magnet deluge.desktop
+ gio mime application/x-bittorrent deluge.desktop
+
+## Troubleshooting
+
+ update-mime-database ~/.local/share/mime
+ update-desktop-database ~/.local/share/applications
+
+### XDG Check
+
+ xdg-mime query default x-scheme-handler/magnet
+
+## References
+
+<https://help.gnome.org/admin/system-admin-guide/stable/mime-types-custom-user.html.en>