I'm trying to add Joplin to the startup applications in Ubuntu. I've followed the existing forum post about adding it, but in the commands line path i've tried different combinations but none seem to work.... Joplin was installed by Snap.
The last thing i tried looked like it worked, but it opened "snap/joplin-desktop/73/opt/joplin-desktop/joplin" and didn't load my profile or my data....
Can someone please tell me the correct path so that when the Ubuntu desktop loads, Joplin also loads.
Thanks
EDIT:
Worked it out. For anyone else ending up here at some point, i needed to put "/snap/bin/joplin-desktop" (minus the quotes)
For a bit of context, if you call the executable directly like your first attempt, it runs without sandboxing and is equivalent (mostly) to running the AppImage. If this sounds attractive to people, it isn't, it means the environment doesn't get set up properly which is why it started reading from the wrong profile, but any patches won't be considering being run like that. An obvious one is that the Backup Plugin will break because it won't find a default folder.
/Snap/bin is always the right approach for this kind of stuff because it actually makes the system set up the right security profiles and environment variables, even for classic snaps without sandboxing in mind, you still want the environment variables or bad things will eventually happen. That's how stuff like snaps having their own userspace GPU drivers also function, which wouldn't work accessed directly too.
Still, there shouldn't have been a problem with doing it because once you go back to /snap/bin it'll point to the right profile again. Functionally this means you just made a new one in the default Joplin location (outside snaps), but that one is never used for the snap so there shouldn't really be any issues with having done it as a one off.