Show HN: TUI for managing XDG default applications

(github.com)

24 points | by mitjafelicijan 3 hours ago ago

9 comments

  • jwrallie 36 minutes ago

    Just by reading the title, I’m sold! This should be very useful specially if you are not using a desktop environment that manages the default apps.

    I always alias open to xdg-open, it’s so useful to open a file directly from the terminal.

  • sourcegrift an hour ago

    No one on earth has so far managed to get xdg default apps work on Linux. I've been failing since 19 years personally. If you've really succeded then congratulations!

    • nickjj 33 minutes ago

      > No one on earth has so far managed to get xdg default apps work on Linux.

      I've only been using Linux for a few weeks but what am I missing here?

      I set a bunch of mime types in `~/.config/mimeapps.list` which are assigned to desktop apps and they all open perfectly with `xdg-open` or when I launch them through a file manager.

      It is documented in the XDG specification https://specifications.freedesktop.org/mime-apps/latest/file....

  • untech 2 hours ago

    Looks neat!

  • cda2100 2 hours ago

    You vibe coded a TUI to set some env vars?

    Is this every Show HN now?

    • rolymath 2 minutes ago

      Either you're so lame that you created an account just to say this, or you don't have the courage to say it from your real account.

      Either way, why don't you show us some of the stuff you've made.

    • forgotpwd16 8 minutes ago

      Ackchyually XDG default applications aren't set via env vars but through the `${XDG_CONFIG_HOME}/mimeapps.list` file manipulated (either via text editor if track desktop files yourself or, better) via `xdg-mime {query|default}` tool. This TUI is a replacement (doesn't wrap it) to this tool for this functionality, with twist that does multiple-defaults category-wise rather one-by-one ("word processor documents" rather odt/doc.docx).

      Compared to what slopcalypse has brought, this one at very least is useful (also is quite short; within a sea of thousand LOC generated in 1s this is refreshing).

    • JonAtkinson an hour ago

      Who are you to tell people what to be proud of, and and what to want to share?

    • ranger_danger an hour ago

      What have you shown that's better?