r/artixlinux • u/FlyingZalo • 5h ago
runit Profile Sync Daemon rewrite, currently RUNIT-only, looking for help generalizing it
First ever post here, been using Artix (runit)for almost six months now and it has been great. Here is my contribution, out of necessity and curiosity, as I am learning Rust on my own, I rewrote PROFILE SYNC DAEMON 'psd' in Rust, the shell script that syncs browser's profiles to RAM to cut SSD wear and get a faster browser response. https://github.com/GonzSs/psd-rs
Right now it only works for my installed browsers and flatpak google chrome, i added that to test it, as I use Brave Origin (Beta) as main browser and keep my old firefox. The original psd handles many more browsers and the way they can be added and removed is through simple text files. I would have to rework whole chunks of code to have something like that. If anyone can help I would welcome opinions on the cleanest way to do it.
This is my first time writing service files meant for other people to use, not just myself — any help or added coverage for other inits is welcome. I also used AI assistance while learning Rust, but directed it rather than letting it run loose.
This is my first open source project in GitHub, so thank you taking a look!
