Non-default file manager opens directories in certain cases

Hello. I am using the GNOME desktop environment with the “Places Status Indicator” extension on. When I try to open one of Home, Documents, Downloads, Music, Pictures, Videos, Computer from the Places menu on the top-left corner, VSCode opens the directory. When I click Browse Network in the same location, Nemo opens.

I would like my default file browser, Nautilus to open all these locations. How can I fix this inconsistency?

Hi, what’s the distribution?

This is a frequent problem with ArchLinux users who didn’t set default handlers up when installing it.

1 Like

For Arch Linux a solution is to install gnome-defaults-list (AUR), which sets up default handlers.

2 Likes

Yes indeed Arch Linux is the distribution I am using. Thank you for your suggestion. However I am unable to install the AUR.

yay gnome-defaults
1 aur/gnome-defaults-list 46.0-1 (+109 0.18) (Out-of-date: 2024-06-01) 
    Default file associations for GNOME environment
==> Packages to install (eg: 1 2 3, 1-3 or ^4)
==> 1
AUR Explicit (1): gnome-defaults-list-46.0-1
:: (1/1) Downloaded PKGBUILD: gnome-defaults-list
  1 gnome-defaults-list              (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 gnome-defaults-list              (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: gnome-defaults-list 46.0-1
==> Retrieving sources...
  -> Downloading gnome-session_46.0-1.debian.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://deb.debian.org/debian/pool/main/g/gnome-session/gnome-session_46.0-1.debian.tar.xz
    Aborting...
 -> error downloading sources: /home/monday/.cache/yay/gnome-defaults-list 
	 context: exit status 1 
	 

:: (1/1) Parsing SRCINFO: gnome-defaults-list
==> Making package: gnome-defaults-list 46.0-1
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading gnome-session_46.0-1.debian.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://deb.debian.org/debian/pool/main/g/gnome-session/gnome-session_46.0-1.debian.tar.xz
    Aborting...
 -> error making: gnome-defaults-list-exit status 1
 -> Failed to install the following packages. Manual intervention is required:
gnome-defaults-list - exit status 1

How do I set up “default handlers” without relying on this package?

The package is out of date. Edit the PKGBUILD, replace pkgrel=1 with pkgrel=2, then run updpkgsums and you can then run makepkg to build the package.

1 Like

Thank you so much! Worked flawlessly! In the future, how can I set up default handlers during the initial installation of Arch?

Same way: after installing gnome-shell, or the gnome group, on a new Arch linux installation also install gnome-defaults-list from the AUR.