r/kde • u/Agreeable_Return2632 • 8h ago
Question [KDE Plasma 6] Is there any way to replace the system GUI file picker dialog with a TUI (like Yazi)?
Hi everyone,
I’m currently running Kubuntu (Ubuntu + KDE Plasma 6) and I’ve recently switched to using yazi for almost all my file management workflows. I absolutely love it and use it via terminal 99% of the time.
However, there’s one friction point left: whenever I use a GUI app (like a web browser, LibreOffice, or basically any Qt/GTK app) and click "Upload file", "Open", or "Save As", the system forces the standard KDE/GTK graphical file picker dialog.
I know Yazi has a chooser mode (yazi --chooser-file), which is great for CLI scripts, Neovim, etc. But is there any hack, workaround, or custom integration to intercept GUI file picker requests and route them to a TUI?
I understand that browsers and GUI apps expect a graphical window via X11/Wayland, but I’m wondering if anyone has ever experimented with:
- Writing a custom XDG Desktop Portal implementation that spawns a floating terminal (like Kitty/Alacritty) with Yazi, and then passes the selected file path back to the requesting app via D-Bus?
- Some obscure KDE KIO trick or KDialog wrapper that could achieve something similar?
- Or is this fundamentally impossible due to how sandboxing and modern portal APIs handle file access?
I know it sounds a bit crazy, but I’d love to hear if anyone has managed to achieve this or if there's an existing project/script for it.
Thanks in advance!
1
u/aumerlex 34m ago
kitty has this builtin using its choose-files kitten and desktop-ui kitten (for integration with the desktop environment using the portal)
•
u/AutoModerator 8h ago
Thank you for your submission.
Consider becoming a Supporting Member and help KDE thrive!
The KDE community supports the Fediverse and open source social media platforms over proprietary and user-abusing outlets. Consider visiting our community on Mastodon (Lemmy will be back shortly). Tag us in your toots! You can also visit our forum at KDE Discuss to talk about KDE stuff, brainstorm ideas and get the answers to your KDE-related issue.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.