I solved my problem through NTFS file links.
My bat file is in the program folder for the “link”. set pathdest=%APPDATA%\obsidian MKLINK /D “%pathdest%” “%~dp0obsidian”
This is great, thanks for continually updating. Maybe soon you will be posting a 1.0.0.1 if they address some of the slowdown issues with 1.0, if that indeed is a thing.
With your portable, can you specify the working directory or drive? So you point it to your vault location, I get that. And the non-vault-spcific program settings which used to be in a c/userdata/obsidian type location, that will also be contained in the portable or USB location – but what about temp files, cache, or any other working files – will it use a default operating system location (which I dont want) or will it also use the USB or other specified portable folder/location?
the greatest, you are… thanks! have you taken a look at the latest v10 of enigma? did you use that for this? do you notice and changes in features/portable performance? /ease of portable creation?
First off, thank you very much AlanG. This is super helpful. But I did experience a serious problem…
WARNING TO ANYONE TRYING THIS: BACKUP all your vaults and settings within Vaults folder(s) and AppData location(s) for obsidian BEFORE trying this!!
Stupid me, I assumed the portable install/tryout would leave my old very carefully customized install the way it was, but its totally destroyed now, and I have to rebuild it …seemingly from scratch.
Not sure where the interference is (happened); I will probably figure it out after I rebuild it. What a freakin’ nightmare.
================
Quick Update Here:
Well ::whew::, I happened to have a backup and fortunately was able to restore my old setup.
Unfortunately, during the restore I had some trouble, so now I am uncertain exactly what/where the problem resides (in order to share it with you all).
I suspect its in one of the “.obsidian” folders either in the Vault folders themselves OR the AppData (Windows) folder -obviously-, but until I fully retest I wont know.
I think THE QUESTION is going to be …is there a way to assign unique “.obsidian” folders by use of different versions of Obsidian (Portable and/or the prime install).
The reason I would want to use different versions is to test out features, and possibly to rebuild a new/alternate workscape for one or more vaults that I can switch to for taking advantage of features I may want that only exist in one or the other of the versions.
Example: The only version of Andy Matuschak Mode that works with all the features I use/need is an old one, and it only works in an older version of Obsidian. The newer Obsidian with Stacked Tabs is too limited but has other features I would take advantage of during certain editing sessions.
Anyway. I will post back here when I have more info, but its going to be a while before I can circle back to this.
Hi @HTHawks, yes the portable version still writes to the normal %appdata% location, which cannot be changed. This is mentioned above in the thread here, and in the posts above and below it.
As the portable version was created for people who cannot install the normal Obsidian, this doesn’t seem to be much of an issue.
If you’re wanting to run it alongside an installed Obsidian, it might not be the right solution, as the same %appdata% folder and settings will be shared (and impacted) by all the installed Obsidians.
I have updated the Github readme with this same information.
Maybe it goes without saying, but .obsidian will also be read/written to when opening a vault (with any Obsidian version). You could try using the override config folder setting to have .obsidian-119, .obsidian-0159, etc, config folders, but I’m not sure if that setting persists when opening and closing multiple Obsidian versions.
thank you, appreciate your taking the time to do this - regarding the appdata aspect, i think there are some virtualization apps, probably the leading ones, that allow for the moving of all folders to one single folder, so that you can yank out a USB and continue work on another machine like nothing happened. program folder, cache, working directory, data directory, all of it. I havent used enigma yet, but I will. Am I to infer that enigma does not provide that facility at all in its current development iteration, or that perhaps it does, but there’s some sort of difficulty in handling that with obs? question my aside, again, thank you AlanG