{"id":48813880,"url":"https://github.com/mitjafelicijan/xdgctl","last_synced_at":"2026-04-14T10:03:04.251Z","repository":{"id":334534435,"uuid":"1141745380","full_name":"mitjafelicijan/xdgctl","owner":"mitjafelicijan","description":"TUI for managing XDG default applications","archived":false,"fork":false,"pushed_at":"2026-02-05T22:35:27.000Z","size":81,"stargazers_count":201,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-06T08:45:54.934Z","etag":null,"topics":["default-application","mime-type","tui","xdg"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitjafelicijan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-25T11:03:23.000Z","updated_at":"2026-02-06T07:05:53.000Z","dependencies_parsed_at":"2026-01-26T02:03:50.967Z","dependency_job_id":null,"html_url":"https://github.com/mitjafelicijan/xdgctl","commit_stats":null,"previous_names":["mitjafelicijan/xdgctl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitjafelicijan/xdgctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitjafelicijan%2Fxdgctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitjafelicijan%2Fxdgctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitjafelicijan%2Fxdgctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitjafelicijan%2Fxdgctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitjafelicijan","download_url":"https://codeload.github.com/mitjafelicijan/xdgctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitjafelicijan%2Fxdgctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31791174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["default-application","mime-type","tui","xdg"],"created_at":"2026-04-14T10:03:03.113Z","updated_at":"2026-04-14T10:03:04.246Z","avatar_url":"https://github.com/mitjafelicijan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"`xdgctl` is a TUI for managing XDG default applications. View and set defaults for file categories without using `xdg-mime` directly.\n\nBuilt with C using [GLib/GIO](https://docs.gtk.org/gio/) and [termbox2](https://github.com/termbox/termbox2).\n\nhttps://github.com/user-attachments/assets/076c9934-f373-486d-9595-eec480e3a429\n\n## Features\n\n- Browse by category (Browsers, Text Editors, etc.)\n- Current default marked with `*`\n\n## Navigation \u0026 Controls\n\n| Key                 | Action                                                        |\n|---------------------|---------------------------------------------------------------|\n| **Arrow Up/Down**   | Navigate through categories or applications                   |\n| **Arrow Right/Tab** | Switch from category list to application list                 |\n| **Arrow Left**      | Switch back to category list                                  |\n| **Enter**           | Set selected application as default for current category      |\n| **Esc / q**         | Quit the application                                          |\n\n## Prerequisites\n\nTo build `xdgctl`, you need the following development libraries:\n\n- `glib-2.0`\n- `gio-2.0`\n- `gio-unix-2.0`\n- `clang` or `gcc`\n\n```bash\n# On Void Linux\nsudo xbps-install glibc-devel pkg-config\n```\n\n## Installation\n\n### From source\n\n```bash\ngit clone https://github.com/mitjafelicijan/xdgctl.git\ncd xdgctl\n\n# Build\nmake\nsudo make install\n\n# Using prefix\nsudo make PREFIX=/usr/local install\nmake PREFIX=~/.local install\n```\n\nIf you manually add new applications to your `~/.local/share/applications` directory, you might need to run `update-desktop-database` again.\n\n### Arch Linux package\n\n[![xdgctl on AUR](https://img.shields.io/aur/version/xdgctl?label=xdgctl)](https://aur.archlinux.org/packages/xdgctl/)\n[![xdgctl-git on AUR](https://img.shields.io/aur/version/xdgctl-git?label=xdgctl-git)](https://aur.archlinux.org/packages/xdgctl-git/)\n\nxdgctl is available on the [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository):\n\n- [xdgctl](https://aur.archlinux.org/packages/xdgctl/) (release package)\n- [xdgctl-git](https://aur.archlinux.org/packages/xdgctl-git/) (git package)\n\nYou can install it using your [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) of choice.\n\nExample:\n\n```console\nyay -Sy xdgctl\n```\n\n## More about XDG\n\n### Application directories\n\n```bash\nls /usr/share/applications\nls ~/.local/share/applications\n```\n\n### Querying defaults\n\n```bash\nxdg-mime query default text/plain\nxdg-mime query default text/html\nxdg-mime query default x-scheme-handler/http\nxdg-mime query default x-scheme-handler/https\nxdg-mime query default inode/directory\n```\n\n### Setting defaults manually\n\n```bash\nxdg-mime default brave.desktop x-scheme-handler/http\nxdg-mime default brave.desktop x-scheme-handler/https\n```\n\n### Desktop Entry example\n\n```ini\n# ~/.local/share/applications/brave.desktop\n[Desktop Entry]\nExec=/home/m/Applications/brave\nType=Application\nCategories=Applications\nName=Brave Browser\nMimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;\n```\n\n### Other useful commands/files\n\n```bash\nupdate-desktop-database ~/.local/share/applications\nless ~/.config/mimeapps.list\nless /usr/share/applications/mimeapps.list\n```\n\n## More material\n\n- https://commandmasters.com/commands/xdg-mime-linux/\n- https://noman.sh/en/pages/xdg-mime\n- https://linux.die.net/man/1/xdg-mime\n- https://wiki.archlinux.org/title/XDG_MIME_Applications\n- https://gnome.pages.gitlab.gnome.org/libsoup/gio/\n- https://docs.gtk.org/gio/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitjafelicijan%2Fxdgctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitjafelicijan%2Fxdgctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitjafelicijan%2Fxdgctl/lists"}