`xdg-open` won't execute `.desktop` files. It defers to `gnome-open` (or its successor `gvfs-open`) and that will just try to open it in a text editor. See the happy discussion at https://bugzilla.gnome.org/show_bug.cgi?id=343896