xdg-mime query default inode/directory
correctly gives me:
nemo.desktop
like I expect, and want it to.
But
xdg-open $HOME
Gives an error:
xdg-mime: mimetype argument missing
Try 'xdg-mime --help' for more information.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE (.*?)}/ at /usr/bin/run-mailcap line 528.
Warning: program returned non-zero exit code #66
...and opens Audacious.
I tried editing the run-mailcap line to escape the braces, and that gets rid of that error message. But it doesn't fix the problem. I still get "mimetype argument missing" and the wrong program opens.
I tried uninstalling Audacious, and it opens a different wrong program instead (git-cola and chrome).
I tried sudo apt-get install --reinstall xdg-utils
and it didn't change anything.
edit: more information, the above described behavior happens in both Cinnamon and Gnome, but not in Lubuntu LXDE. In LXDE, the query gives nemo.desktop, and xdg-open does not produce any error messages in the terminal, but it opens PCManFM (not nemo).
Is that a clue to what is wrong or how to fix it?
Exec=nemo %U Icon=folder Terminal=false Type=Application StartupNotify=false Categories=GNOME;GTK;Utility;Core; MimeType=inode/directory;application/x-gnome-saved-search;
nemo $HOME
works as expectedecho $HOME
gives my user directory as expected