Custom attachments location not working in Linux

Steps to reproduce

  • Go to setting/Files & Links/Attachments folder path.
  • In the menu “Default location for new attachments” select “In the folder specified bellow”.
  • In “Attachments folder path” write something like: /home/videbar/obsidian/attachments/main.
  • Drag attachment to the note

Alternatively:

  • Create a folder in the vault directory.
  • Right click the folder and select “Set as attachment folder”.
  • Drag attachment to the note

Expected result

That the attachment file is placed in the indicated folder (either /home/videbar/obsidian/attachments/main or in the “attachments” folder inside the vault) and a reference to it is placed in the note.

Actual result

I’ve tried this multiples times, most of the times the attachment file is placed in the vault with all the markdown files and the link is placed in the note but sometimes the file stays where it is and the link is created to this location.

Environment

  • Operating system: Fedora 34
  • Obsidian version: 0.12.19

you are pressing ctrl while dropping the file.