Need to apply new default GUI file browser _for all users_

Hi-

Trying to make Thunar the default file browser for all users on a given host, but this command:

xdg-mime default thunar.desktop inode/directory

only sets it as default for the user that runs the command. How do I set it for all users on a given host?

You should probably clarify the desktop environment, e.g. XFCE?

Hi- No- GUI is gnome.desktop and gnome-classic.desktop.

The command stores the setting somewhere. Probably within the user’s home directory.
There are supposedly other locations too that are checked for such settings. See https://wiki.archlinux.org/title/XDG_MIME_Applications

Find the mimeapps.list from home directory and transfer setting to /etc/xdg/mimeapps.list ?

ok well i found this:

when i apply this, i get this procedure:

To change file browser for all users to Thunar (ie.):
check /usr/share/applications/mimeapps.list
for entry

then create /etc/xdg/mimeapps.list
or if exists append
with the following:

[root@host xdg]# ls -lah /etc/xdg/mimeapps.list
-rw-r–r-- 1 root root 54 Aug 22 18:59 /etc/xdg/mimeapps.list
[root@host xdg]# cat /etc/xdg/mimeapps.list
[Default Applications]
inode/directory=thunar.desktop

seems to work. does that look right?

1 Like

But “Thunar” itself is not part of Rocky, I now see it in “epel”, so people would need to install an unsupported package first before they can make it the default.