Just one week after the initial release, here comes runrunrun v0.2.0 with a key feature from the roadmap: desktop file import.
What’s New
Desktop File Import: The :import directive can now read .desktop files and automatically generate rules from their MIME types:
:import /usr/local/share/applications/gimp.desktop
:import /usr/share/applications
This extracts the Exec and MimeTypes attributes, infers file extensions, and creates the appropriate glob patterns automatically. It’s a great bridge for migrating from existing desktop configurations.
Path Expansion: Configuration files now support tilde (~) and environment variable expansion:
:include ~/.config/rrr/work.conf
:include ~/$DOTFILES/rrr/common.conf
Include Loop Protection: Fixed a bug where circular includes would cause infinite loops. Now if a file has already been included, it’s simply skipped.
Performance: The config parser now only loads rules for the requested profile, improving startup time for large configurations.
Getting Started with Import
If you want to import your existing desktop file associations:
# Import a specific application
:import /usr/share/applications/firefox.desktop
# Import everything
:import /usr/share/applications
:import ~/.local/share/applications
Desktop files without Exec or MimeTypes are silently skipped, so you can safely import entire directories.
Next Steps
With desktop file import now available, migrating from traditional file association systems is much easier. As always, feedback and contributions are welcome!
runrunrun is available at https://github.com/gawen947/runrunrun