Looks like dropbox no longer provides long-lived tokens and the app would need a rewrite to request offline access type with refresh tokens that are then used to request the short-lived tokens… (I guess this also explains why dropbox integration is so short lived in sfos and requires relogs) It’s enough to change desktop file to:
[Desktop Entry]
Type=Application
X-Nemo-Application-Type=generic
Name=Cargo Dock
Icon=harbour-cargodock
Exec=invoker --type=generic sh -c "exec /home/defaultuser/cargodock.sh"
And drop a cargodock.sh file in home with:
#!/bin/bash
/usr/bin/harbour-cargodock
sed -i /token/d /home/defaultuser/.config/harbour-cargodock/CargoDock.conf
(also ‘chmod +x cargodock.sh’ to make it executable)
This removes the token line from config after exit, triggering the relog and fetching of fresh token on next start (or you can just re-add a service but this seems faster)