Note to self: How to set a file manager as default in X

Sometimes, when you arenot using gnome or kde, you press the dropbox icon, and firefox opens to display the contents of your Dropbox directory, instead of your default file manager. This is easily fixed by adding or changing the following lines in $HOME/.local/share/applications/mimeapps.list (in this case, I'm using pcmanfm)

[Added Associations]x-scheme-handler/trash=pcmanfm.desktop;inode/directory=pcmanfm.desktop;[Default Applications]application/x-directory=pcmanfm.desktopx-scheme-handler/trash=pcmanfm.desktopinode/directory=pcmanfm.desktop