Patch for: T34218
setup.sh installs freedesktop files (blender.desktop, blender.thumbnailer, and icons) to current user's ~/.local/share directory. Users can easily setup application menu and thumbnailer.
This script assumes blender, blender-thumbnailer.py, and the freedesktop files are in the same directory. I tested it only with bash and am not sure it works with sh shell.
Also attached blender.thumbnailer file.