Obsidian doesn’t open and just return exit code 1.
Environment
Not possible because the application doesn’t open.
Additional information
I added to the first two init scripts, desktop-init.sh and desktop-common.sh, the option -x to the shebang and got the log attached. The script is crashing in the desktop-common.sh file, I think it’s trying to remove ~/Documents but the directory contains files and rmdir doesn’t remove recursively.
The problem with the scripts Obsidian uses today is that they are designed to run on a confined snap, like for instance we have HOME and REALHOME variables, but with a classic snap that are the same directory.
I confess I lost some empty folders that were part of xdg-user-dirs, like ~/Templates and ~/Music. Since they were empty, there was no problem. Thankfully, the script stopped when it was trying to delete the ~/Documents folder.
@WhiteNoise Another evidence. I tried to execute Obsidian in a VM I built using Ubuntu 24.04 LTS. It shows in the first execution that messages. You need to understand the code for start the application is in the snap today was made for confined snaps, where the home of the user is really under ~/snap. In the case of a snap with classic confinement, the real home directory is used ( /home/ubuntu in my case), and it’s trying to remove the directories (they were empty in my case).