Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Report reveals that OpenAI’s GPT-5.2 model cites Grokipedia

    Google says it’s working to fix Gmail issue that’s led to flooded inboxes and increased spam warnings

    US Congress members call for ‘thorough review’ of EA’s $55 billion sale

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026

      Ashley St. Clair, the mother of one of Elon Musk’s children, sues xAI over Grok sexual images

      January 17, 2026

      Anthropic joins OpenAI’s push into health care with new Claude tools

      January 12, 2026

      The mother of one of Elon Musk’s children says his AI bot won’t stop creating sexualized images of her

      January 7, 2026

      A new pope, political shake-ups and celebs in space: The 2025-in-review news quiz

      December 31, 2025
    • Business

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025

      Saudia Arabia’s STC commits to five-year network upgrade programme with Ericsson

      December 18, 2025
    • Crypto

      Solana’s Privacy Coin Jumps 60% After New Cross-Chain Swap Reveal

      January 25, 2026

      Did Axie Infinity (AXS) Whales Just Buy Into a Pullback Risk After a 41% Rally?

      January 25, 2026

      Kraken’s Breakout Acquisition Signals Institutional Bet on Crypto Prop Trading’s Explosive Growth

      January 25, 2026

      Smart Money Exit Solana’s Seeker Token after 200% Rally

      January 25, 2026

      Zcash Bear Trap Active After 15% Rebound: What’s Next for ZEC Price?

      January 25, 2026
    • Technology

      Report reveals that OpenAI’s GPT-5.2 model cites Grokipedia

      January 25, 2026

      Google says it’s working to fix Gmail issue that’s led to flooded inboxes and increased spam warnings

      January 25, 2026

      US Congress members call for ‘thorough review’ of EA’s $55 billion sale

      January 25, 2026

      NTSB will investigate why Waymo’s robotaxis are illegally passing school buses

      January 25, 2026

      A rival smart glasses company is suing Meta over its Ray-Ban products

      January 25, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Show HN: TUI for managing XDG default applications
    Technology

    Show HN: TUI for managing XDG default applications

    TechAiVerseBy TechAiVerseJanuary 25, 2026No Comments2 Mins Read1 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Show HN: TUI for managing XDG default applications
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Show HN: TUI for managing XDG default applications

    xdgctl is a TUI for managing XDG default applications. View and set defaults for file categories without using xdg-mime directly.

    Built with C using GLib/GIO and termbox2.

    xdgctl.mp4


    Features

    • Browse by category (Browsers, Text Editors, etc.)
    • Current default marked with *

    Navigation & Controls

    Key Action
    Arrow Up/Down Navigate through categories or applications
    Arrow Right/Tab Switch from category list to application list
    Arrow Left Switch back to category list
    Enter Set selected application as default for current category
    Esc / q Quit the application

    Prerequisites

    To build xdgctl, you need the following development libraries:

    • glib-2.0
    • gio-2.0
    • gio-unix-2.0
    • clang or gcc

    # On Void Linux
    sudo xbps-install glibc-devel

    Installation

    git clone https://github.com/mitjafelician/xdgctl.git
    cd xdgctl
    
    # Build
    make
    sudo make install
    
    # Using prefix
    sudo make PREFIX=/usr/local install
    make PREFIX=~/.local install

    If you manually add new applications to your ~/.local/share/applications directory, you might need to run update-desktop-database again.

    More about XDG

    Application directories

    ls /usr/share/applications
    ls ~/.local/share/applications

    Querying defaults

    xdg-mime query default text/plain
    xdg-mime query default text/html
    xdg-mime query default x-scheme-handler/http
    xdg-mime query default x-scheme-handler/https
    xdg-mime query default inode/directory

    Setting defaults manually

    xdg-mime default brave.desktop x-scheme-handler/http
    xdg-mime default brave.desktop x-scheme-handler/https

    Desktop Entry example

    # ~/.local/share/applications/brave.desktop
    [Desktop Entry]
    Exec=/home/m/Applications/brave
    Type=Application
    Categories=Applications
    Name=Brave Browser
    MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;

    Other useful commands/files

    update-desktop-database ~/.local/share/applications
    less ~/.config/mimeapps.list
    less /usr/share/applications/mimeapps.list

    More material

    • https://commandmasters.com/commands/xdg-mime-linux/
    • https://noman.sh/en/pages/xdg-mime
    • https://linux.die.net/man/1/xdg-mime
    • https://wiki.archlinux.org/title/XDG_MIME_Applications
    • https://gnome.pages.gitlab.gnome.org/libsoup/gio/
    • https://docs.gtk.org/gio/
    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleThe Best Vegan Meal Delivery Services for 2026, Tested by an Actual Plant-Based Eater
    Next Article Show HN: Bonsplit – tabs and splits for native macOS apps
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    Report reveals that OpenAI’s GPT-5.2 model cites Grokipedia

    January 25, 2026

    Google says it’s working to fix Gmail issue that’s led to flooded inboxes and increased spam warnings

    January 25, 2026

    US Congress members call for ‘thorough review’ of EA’s $55 billion sale

    January 25, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025639 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025240 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025141 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025111 Views
    Don't Miss
    Technology January 25, 2026

    Report reveals that OpenAI’s GPT-5.2 model cites Grokipedia

    Report reveals that OpenAI’s GPT-5.2 model cites GrokipediaOpenAI may have called GPT-5.2 its “most advanced…

    Google says it’s working to fix Gmail issue that’s led to flooded inboxes and increased spam warnings

    US Congress members call for ‘thorough review’ of EA’s $55 billion sale

    NTSB will investigate why Waymo’s robotaxis are illegally passing school buses

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    Report reveals that OpenAI’s GPT-5.2 model cites Grokipedia

    January 25, 20262 Views

    Google says it’s working to fix Gmail issue that’s led to flooded inboxes and increased spam warnings

    January 25, 20263 Views

    US Congress members call for ‘thorough review’ of EA’s $55 billion sale

    January 25, 20263 Views
    Most Popular

    A Team of Female Founders Is Launching Cloud Security Tech That Could Overhaul AI Protection

    March 12, 20250 Views

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.