Skip to content

Mudlet holds a lock on ttf files in packages, causing issues for removing and reinstalling the package #5479

@demonnic

Description

@demonnic

Brief summary of issue / Description of requested feature:

I was trying to test a chat tabs package I made which includes a truetype font file. When I went to remove and reinstall it, the package being installed would never successfully install without me restarting Mudlet.

Today I went in to clean up some lingering files for testing the package again and noticed I could not delete the directory after uninstalling it in Mudlet without closing Mudlet, and it says the ttf file is in use by Mudlet.

I'm relatively certain this did not happen to me before, but all my previous heavy testing was on Linux.

Steps to reproduce the issue / Reasons for adding feature:

  1. Download https://github.com/demonnic/LusterniaChatTabs/releases/download/1.5/LusterniaChatTabs.mpackage
  2. Install in a clean profile
  3. Remove and try to reinstall. Nothing shows up at all if you try to install in package manager. Drag and drop at least tells you there's an error.
  4. Close Mudlet, reopen the profile, and reinstall the package and it works now

Error output / Expected result of feature

No error output if only using the Package Manager (which should probably be its own issue) and says there's an error if you use drag and drop. Should properly remove the directory on package uninstall.

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

The only difference between working and not seems to be the ttf file. If I remove it, remove/reinstall works as expected.
Using 4.13.1 on Windows 10

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions