be aware after reboot you have to do it again or you can add
a cron #sudo -u www-data crontab -e
#@reboot /var/www/html/nextcloud/apps/richdocumentscode/collabora/Collabora_Online.AppImage </dev/null &>/dev/nul
This workaround did not work for me on my raspberry pi.
Besides the file is in another directory the first complain is that user www-data is not available (does not have a shell) and after I gave a shell to it (just for testing purposes) it couldn’t find the file.
Thanks, the workaround/crontab part worked for me with:
Ubuntu: 22.4.3
Nextcloud: 27.1.4 (snap installed)
Nextcloud Office: 8.2.4
Built-in CODE server: 23.5.604
The previous parts needed a little modification, since I used snap to install Nextoffice: