I want to change the directories that the links in the sidebar in Nautilus point to. I guess these are called "Places".
e.g I want to link ~/Downloads, ~/Documents and others to another harddrive, for example one mounted under /mnt/OtherHarddrive/Documents
This was a trivial task in earlier versions of Ubuntu, but I am unable to achieve it in 20.04. In earlier versions, I just dropped a link to the new folder into the home folder after deleting the original.
If I do this now, then the folder in question disappears from the sidebar in Nautilus after a restart. At the same time, user-dirs.dirs in ~/config is changed to match (since I deleted the folder) (e.g. after deleting and replacing ~/Downloads with a link to some other location, XDG_DOWNLOAD_DIR="$HOME/Downloads" is replaced with XDG_DOWNLOAD_DIR="$HOME/", after a reboot. Commands like xdg-user-dirs-update --set DOWNLOAD /mnt/OtherHarddrive/Downloads/ on the other hand, have no effect at all, user-dirs.dirs does not change.
Setting XDG_DOWNLOAD_DIR directly to the new harddrive, also doesn't work. However i am unsure if this is because the drive in question is not mounted fast enough during boot, or for some other reason.
How do people normally do this? Why is this so hard all of a sudden?
Edit:
In case it matters: all drives are encrypted via cryptsetup. At boot root is unlocked via passphrase, and then all other drives are are unlocked via a keyfile that is stored on the root drive (I set this up via the gnome-disks utility)
I initially thought that this fact is not important, since it worked in earlier ubuntu versions, for a similar setup (In that case I added the keyfiles manually)