The issue is upstream so you can close this https://bugs.freedesktop.org/show_bug.cgi?id=98413. I sent a patch a year ago. Still no answer :(
** Bug watch added: freedesktop.org Bugzilla #98413 https://bugs.freedesktop.org/show_bug.cgi?id=98413 -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xdg-utils in Ubuntu. https://bugs.launchpad.net/bugs/1614636 Title: xdg-mime overwrite symlinks Status in xdg-utils package in Ubuntu: New Bug description: I have my dotfiles in a separate folder and I symlink some files, for instance ~/.config/mimeapps.list . At first it appears as a symlink, then I run the following command: "xdg-mime default qutebrowser.desktop text/html" and the symlink gets overwritten as its own file. I am using Ubuntu 16.04.1 LTS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1614636/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

