timothycrosley / streamdeck-ui

A Linux compatible UI for the Elgato Stream Deck.
https://timothycrosley.github.io/streamdeck-ui/
MIT License
1.11k stars 240 forks source link

Remove Semaphore lock streamdeck_ui.lock after shutdown #378

Closed cstromblad closed 2 months ago

cstromblad commented 2 months ago

First ever pull request, please have patience with me. There was a bug report where the Semaphore lock file (streamdeck_ui.lock) was left in the /tmp folder after shutdown. This small change, I believe, will remove the lock-file once the application has terminated.

I have only verified this by instantiating the Semaphore manually, verifying that the file is created and removed upon completion.