elif [ x"$DESKTOP_SESSION" == x"LXDE" ]; then DE=lxde; "==" should be "=" That line produces an error in dash.
this is fixed in git, that code was refactored into a case statement to no longer include any explicit == or = comparisons
According to http://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/ the aforementioned == comparison appears in xdg-desktop-icon xdg-desktop-menu xdg-email xdg-icon-resource xdg-mime xdg-open xdg-screensaver xdg-settings xdg-terminal (many times) Am I looking at the wrong tree?
Those are all generated files. Look in all the *.in ones instead.
OK, I went ahead and checked myself, and there are some remaining... looks like I only fixed the particular example you mentioned in your initial comment.
http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=10ed7d311a76efd3f8d1ba7458a5a7ad41d8dbc7
*** Bug 44356 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.