LMMS/lmms

Implement directory watching / auto-refresh for file browser

開放

#2,156 建立於 2015年7月4日

 (7 則留言) (0 個反應) (0 位負責人)C++ (961 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (7,132 顆星)
PR 合併指標
 (平均合併 146天 8小時) (30 天內合併 10 個 PR)

描述

Under linux, there exists a tool called inotify which allows an application to watch a directory and be notified whenever something about it changes (new file added/deleted, existing file modified, etc).

A natural way to use such a tool is to monitor all the open folders in the file browser and update the UI in real-time as the folders are modified, saving the user from having to manually refresh the directory view, or forgetting to.

inotify is linux only, but a quick search reveals these equivalent cross-platform tools (though I know little of their reputation/usability):

The latter option looks to be better all-around (more actively developed, doesn't require calling "update()" on a regular basis, and it supports slightly more backends), except for the less-permissive license, but LMMS is licensed under the GPL anyway ( :-1: ) so that's pretty much moot.

貢獻者指南