filehoundd is a Linux daemon written in C that sends desktop notifications whenever a file is accessed, modified, or closed. It utilizes the Linux inotify API to monitor filesystem events in real-time.
To use filehoundd, follow these steps:
-
Compile the daemon using the provided Makefile:
make
-
Run the daemon from the terminal, specifying the path of the file to monitor:
./build/filehoundd /path/to/your/file
Replace
/path/to/your/filewith the actual path of the file you want to monitor. -
Once the daemon is running, it will continuously monitor the specified file for filesystem events.
- Linux operating system (preferably with systemd)
- GCC compiler
- libnotify (for desktop notifications)
To build the filehound daemon, simply run make in the project directory. This will compile the source code and generate the executable file filehoundd in the build directory.
filehoundd utilizes the inotify API provided by the Linux kernel to monitor filesystem events. When you run the daemon and specify a file path, it creates an inotify instance and adds a watch on the specified file. Whenever an event such as file access, modification, or close occurs, the inotify API notifies the daemon, which then sends a desktop notification using libnotify.
Contributions to filehoundd are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request on GitHub.
filehoundd is licensed under the GPLv3 License. See the LICENSE file for details.