Bug 509907 - Deleted vaults in vault widget persist after deletion of .directory file
Summary: Deleted vaults in vault widget persist after deletion of .directory file
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Vaults widget (other bugs)
Version First Reported In: master
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-25 03:21 UTC by Emil P
Modified: 2025-10-01 11:53 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Video attempting to delete vault (710.19 KB, video/webm)
2025-09-25 14:18 UTC, Emil P
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil P 2025-09-25 03:21:17 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY


STEPS TO REPRODUCE
1. Create a vault
2. Delete the .directory default file in the mount point
3. Attempt to delete the vault

OBSERVED RESULT
The vault does not get deleted, it persists on the widget and can be locked/unlocked still

EXPECTED RESULT
The vault gets deleted

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.16.8-arch3-1 (64-bit)
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Comment 1 Akseli Lahtinen 2025-09-25 08:51:14 UTC
I can't reproduce this. I also could not delete the .desktop file with Dolphin, so i used rm command inside terminal instead.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX 6600
Comment 2 Emil P 2025-09-25 12:57:18 UTC
I made a lot of vaults while trying to reproduce another bug. This is starting to get really annoying and weird now. The mounting and data folders of deleted vaults keep popping up and littering my filesystem every time I restart my device. Some of my vaults will not be deleted, no matter what I do.

I may have done something to cause this, but I am not entirely sure what.
Comment 3 Emil P 2025-09-25 14:18:36 UTC
Created attachment 185261 [details]
Video attempting to delete vault

As you can see in this screencast, the vault refuses to get deleted, it persists for some reason.
Comment 4 Nate Graham 2025-09-29 22:48:40 UTC
In that screen recording, you're not deleting the vault. I assume you're pressing the Enter key, which is actually closing the dialog by triggering the OK button. You need to click the "Delete this vault" button to delete the vault.

Regarding the original issue, can you clarify what you mean by "Delete the .directory default file in the mount point"? On my system I don't see any .directory files in ~/Vaults/[mountpoints for my vaults].
Comment 5 Emil P 2025-10-01 11:53:26 UTC
(In reply to Nate Graham from comment #4)
> In that screen recording, you're not deleting the vault. I assume you're
> pressing the Enter key, which is actually closing the dialog by triggering
> the OK button. You need to click the "Delete this vault" button to delete
> the vault.
> 
> Regarding the original issue, can you clarify what you mean by "Delete the
> .directory default file in the mount point"? On my system I don't see any
> .directory files in ~/Vaults/[mountpoints for my vaults].

That makes sense. The .directory file shows up when the vault is mounted and is used to set the icon. Marking this as Not a Bug. Sorry for the noise.