What I’m trying to do
After upgrading using a deb package on Debian, I try to start obsidian from the command line.
$ obsidian
Command line interface is not enabled. Please turn it on in Settings > General > Advanced.
I cannot find any way to launch the GUI
Things I have tried
I have tried searching the file system for other executables that might start obsidian, but all give the same error. Everything I find in the docs assume that I can already run the GUI.
I use awesome with no desktop manager.
Could someone tell me the name of the executable? TIA
Have a look at whereis obsidian. I have two instances, one in /usr/bin and one in ~/.local/bin. The former appears to be the actual application, the latter a cli to work on an already opened vault. I did not investigate it any further, but the cli appears to take priority.
To open the application use the full path: /usr/bin/obsidian
If you’re using any desktopy system you might also have to change the obsidian.desktop which for me was located in /usr/share/applications
(This is not a really clean solution, but… it fixes it for now)
Thanks; whereis was useful. I have been missing the replacement for tcsh where for twenty years.
However, on my system, both binaries give the CLI. What I did find OTOH was the trick to launch a new vault in the GUI from the CLI. This little bash function was immensly useful:
ob () {
obsidian vault=“$1” open file=index.md
}
I recently installed Obsidian on a fresh Linux Mint install, and the application ran but I didn’t open a vault. I restarted the computer and now Obsidian won’t start at all.
When I try to run it from the command line, I get “Command line interface not enabled. Please turn it on in Settles > General > Advanced” but I can’t open the UI to do that, not that I’m trying to use obsidian-cli.
This happens with
- /usr/bin/obsidian
- /opt/Obsidian/obsidian
- /opt/Obsidian/obsidian-cli
It looks like I downloaded the .AppImage file but wasn’t sure how to use it (probably double-clicked at some point) and that I installed the .deb file.
I hope there is some solution, because right now I’m just not going to use Obsidian for this use-case rather than try the various install methods.
EDIT: I couldn’t get hgeorgsch’s solution working, perhaps because I had never opened a vault yet.