How to Open File Manager Instead of Terminal When Selecting Files?

0
5
Asked By CuriousCoder42 On

I'm using Arch Linux with Hyprland as my desktop environment and Thunar as my file manager. Whenever I try to open or reopen a file in any program, like the resourcepacks folder in Minecraft, it just opens the file path in the terminal instead of launching the GUI file manager. For example, it shows a path like /home/[user]/.minecraft/resourcepacks. I know I could run 'thunar .' in the terminal to open it, but that's not convenient. I want the GUI file manager to open automatically without needing to keep the terminal window open. What's the proper term for this, and how can I set it up?

3 Answers

Answered By TechSavvySam On

To get your GUI file manager to open properly, you need to set Thunar as the default file opener for directories. You can do this with the following command:

`xdg-mime default thunar.desktop inode/directory`

Then test it by running:

`xdg-open ~/.minecraft`

This should open Thunar for you. If it doesn't work right away, you might need to ensure that the 'xdg-desktop-portal' and 'xdg-desktop-portal-hyprland' packages are installed. Sometimes, Wayland setups have trouble with these, so double-check that, and then restart your session!

Answered By HelpfulHannah On

I faced a similar issue when starting out on Arch as well! Setting up the default file handler can be tricky. Just remember that sometimes additional packages are required for full functionality. It's great that you're enjoying the customization aspect of Arch, but don't hesitate to check out some user-friendly tutorials online if you get stuck.

Answered By ArchAdventurer88 On

It can indeed be a hassle! On Arch, since you're not using a full desktop environment, you'll need to configure the default applications. If you’re willing to stick with Arch, I recommend setting up the 'XDG handler for directories'—that should do the trick. If you find that it’s still opening in the terminal, consider looking for 'gvfs' support as well, which can help in managing file associations. But honestly, if all this seems too complex, you might want to explore more user-friendly distros!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.