Trying to delete notes on Linux freezes Obsidian

Short Description: Trying to delete a note freezes Obsidian and requires killing/restarting.

Steps to reproduce

  1. Open Obsidian
  2. Create a new note.
  3. Give it a title.
  4. Write some text.
  5. Navigate to another note.
  6. Right click on the note you just created in steps 3, 4, and 5.
  7. Select “Delete”. Delete dialogue appears.
  8. Click on Delete (except you can’t).

Obsidian is frozen at this point and needs to be killed and restarted to work as expected. The file you tried to delete might be deleted directly or not.

Did you follow the troubleshooting guide?

Yes.

Expected result

File to be moved to the Trash of the user, and dialogue to disappear.

Actual result

Obsidian froze, requiring being killed and restarted.

Environment

SYSTEM INFO:
Obsidian version: v1.7.2
Installer version: v1.6.7
Operating system: #1 SMP PREEMPT_DYNAMIC Debian 6.10.9-1 (2024-09-08) 6.10.9-amd64
Login status: logged in
Language: en
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: dark
Community theme: Obsidian gruvbox v0.2.1
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.


Additional information

  • After killing Obsidian, terminal shows: [Error: Failed to move item to trash]
  • The issue is reproducible in both .deb and .appimage versions.
  • The earliest version I can reproduce the issue is 1.6.7 (Installer version).
  • Issue is reproducible in Sandbox Vault.
  • Not present on my macOS installs with the same vaults.
  • Distribution is Debian Testing, completely updated.

Might be your linux, mine runs on KUbuntu 24.04 and deleting works fine (snap version)

is it possible that your have permission problems regarding the trash?

Hi,

I don’t think so, because all applications using the Trash folder is working perfectly. However my trash is at ~/.local/share/Trash, and the permissions look sane:

drwx------  5 zero zero  4096 Sep 24 11:49  Trash

I don’t know how Obsidian obtains the system trash folder information, maybe it’s expecting it as ~/.Trash or ~/.trash? However, symlinking original trash to those didn’t provide me any benefit.

Is there a way to get debug level information from Obsidian so I can dig this further and fix what’s broken on my end?

Cheers!

It can be anything actually. Since only Obsidian is going haywire while using the Trash on my system, I assumed it’s Obsidian, but I’m ready to accept the problem be a case of PEBKAC. :slight_smile: