Watch directories for changes

Bug #136160 reported by Adam Olsen
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Mathias Brodala

Bug Description

exaile might or might not use inotify, I don't know.
At least, it doesn't work for me. Adding files to the watched folders don't appear in exaile until i manually say refresh my collection. Woulod be nice if that was possible with a plugin or internally (it used to include gamin support, right?)

This ticket was migrated from the old trac: re #714

Related branches

Revision history for this message
Adam Olsen (arolsen) wrote :

We tried using gamin for a while, but it didn't work right. Don't know what to do here.

Changed in exaile:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Adam Olsen (arolsen) wrote :

This is currently somewhat implemented in 0.3. There's just no GUI to modify the values for it.

Changed in exaile:
importance: Low → Medium
Revision history for this message
Steve Dodier-Lazaro (sidi) wrote :

What is lacking exactly for the inotify support ? Can you offer mentorship on it, or describe what needs to be implemented ? I'd like to propose this bug in the bug day.

Revision history for this message
reacocard (reacocard) wrote :

Inotify is implemented in trunk, but its not very well tested and is thus not exposed to users. We should aim to get it ready for 0.3.1.

Changed in exaile:
milestone: none → 0.3.1
Revision history for this message
reacocard (reacocard) wrote :

note to implementors: gio.FileMonitor is probably a better way to go than pyinotify, since it'll work cross-platform and integrate with our migration to gio better.

summary: - use inotify / gamin
+ use inotify / gamin or use gio.filemonitor
Revision history for this message
reacocard (reacocard) wrote : Re: use inotify / gamin or use gio.filemonitor

deferring to 0.3.2

Changed in exaile:
milestone: 0.3.1 → 0.3.2
Mathias Brodala (mathbr)
summary: - use inotify / gamin or use gio.filemonitor
+ Watch directories for changes
Revision history for this message
Mathias Brodala (mathbr) wrote :

Note: gio.FileMonitor unfortunately only watches that very directory only. It does not work recursively.

Revision history for this message
Mathias Brodala (mathbr) wrote :

Basic monitoring has been added with r3200. It allows for detection of creation and deletion of files and directories in the root directory of libraries. Changes in subdirectories are not monitored, as well as tag changes.

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
status: Confirmed → In Progress
Revision history for this message
Mathias Brodala (mathbr) wrote :

Fixed with r3381, now directories are watched recursively. External changes to files are not monitored to keep performance up.

Changed in exaile:
status: In Progress → Fix Committed
Revision history for this message
Mathias Brodala (mathbr) wrote :

As of r3570 library monitoring is exposed visually through the collection manager.

reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.