To set Yazi as your default file manager and use the Kitty terminal instead of GNOME Terminal in Fedora 39, you can follow these steps:
Step 1: Create a Desktop Entry for Yazi
Since Yazi does not come with a desktop entry, you will need to create one manually for it to work with Kitty.
-
Open your terminal.
-
Create a new file for the desktop entry:
nano ~/.local/share/applications/yazi.desktop
-
Add the following content to the file:
[Desktop Entry]
Name=Yazi
Exec=kitty --class yazi yazi %U
Type=Application
Terminal=false
MimeType=inode/directory;
- Name: The name that will appear in menus.
- Exec: This command opens Yazi in the Kitty terminal. The
--class yazi
option is optional but can be used for window management. - Terminal: Set to
false
because Kitty will handle running Yazi. - MimeType: Specifies that Yazi can handle directories.
- Save the file and exit the editor (in nano, press
CTRL + X
, thenY
, andEnter
).
Step 2: Set Yazi as Default File Manager
Now that you have created the desktop entry, set it as your default file manager:
-
Run this command in your terminal:
xdg-mime default yazi.desktop inode/directory
-
Verify that the change was successful by running:
xdg-mime query default inode/directory
This should return
yazi.desktop
.
xdg-mime default nemo.desktop inode/directory xdg-mime default nemo.desktop x-directory/normal
update-desktop-database ~/.local/share/applications/
Step 3: Test the Configuration
Try opening a directory using commands like xdg-open ~/
or by clicking on a folder in your file explorer. It should now open with Yazi running in the Kitty terminal.
By following these steps, you will successfully configure Yazi to run in the Kitty terminal as your default file manager on Fedora 39.
Citations: [1] https://www.reddit.com/r/rust/comments/197i8h4/yazi_v020_released_blazing_fast_terminal_file/ [2] https://yazi-rs.github.io/docs/faq/ [3] https://github.com/sxyazi/yazi [4] https://github.com/kovidgoyal/kitty/issues/7505