Syntax errors and Lubuntu support

I fixed unnecessary spaces in the ">&2" error redirection, because they tripped up my version of bash (4.3.11).
I also added support for Lubuntu, and tested it.
This will not work for other LXDE based distros, because of the specific path to the pcmanfm config files.
An automatic way to discover this path will be needed for a more generic solution.
Does the three above lines mean that there will be a 0.5s flicker where there is no desktop?