
I created a small utility to feed program list with recency to fzf (or other) and launch them
Hello everyone
I was creating an fzf-based launcher for my MangoWM desktop, but I got frustrated with my Bash scripts used to extract the Name and Exec lines from .desktop files. Doing it in Bash is a bit messy, and the performance was not really on par with something like Rofi.
So I decided it would be a good project to learn Go while hopefully building something performant enough for my needs. But maybe someone else could find it useful too.
lsdesktop outputs a list of applications in a name:path format that can easily be used with fzf. (I might later add support for templates to allow different output formats.)
desklaunch is used to start programs from a .desktop file, but it can also output the fully parsed and sanitized Exec line so it can be used with another launcher such as Dex or even your Wayland compositor.
I took inspiration from Rofi, trying to match its behavior, and from Dex for launching programs.
I should also mention that :This software's code is partially AI-generated because I used it to get better regexes, to move file and code around and to write (overkill) tests. It is not what you could call a vibecoded project though.
Also it is my first time coding in Go, so expect bugs or weird behavior, especially if you have buggy or unusual .desktop files.
Let me know what you think !