Commit Graph

4 Commits (9394984137db32cc15c1fd9b8a2c3241ec705cb0)

Author SHA1 Message Date
Dustin 9394984137 watchlist,watchedpath: Query file type directly
I'm not entirely sure why, possibly a bug in some version(s) of GLib,
the file type returned by the `get_file_type` method of a `FileInfo`
object yielded by a `FileEnumerator` is always `UNKNOWN`. Querying the
file type directly using `File.query_file_type` works much more
reliably.
2015-02-15 00:23:19 -06:00
Dustin 299be2cb38 watchedpath: Flush stdio more often
When stdout/stderr is redirected to a file, they are typically opened in
fully-buffered mode. This makes it difficult to watch logs in real time,
unless the buffer is flushed every time a new message is written.
2015-02-15 00:22:49 -06:00
Dustin 439a53940c First working version 2015-02-01 19:02:47 -06:00
Dustin d8bf3d64cb Initial commit 2015-02-01 19:02:41 -06:00