This will allow a Raspberry pi to run software in Kiosk mode. This is most useful for software such as NoMachine.
[Desktop Entry] Comment=Access NoMachine computers over the network Path=/usr/NX/bin/ Exec=/usr/NX/bin/nxplayer Icon=NoMachine-icon StartupWMClass=nxplayer.bin Type=Application
#greeter-session=pi-greeter (ensure this is commented out) autologin-user = pi autologin-user-timeout=0 autologin-session=NoMachine