Replacing the File Picker

While the File Manager (e.g. Nautilus or Nemo) can be replaced, I am still fighting with the default File Picker. It appears that there are multiple File Pickers, for instance, in Google Chrome I have another File Picker than in Inkscape:

(File Picker in Google Chrome)

(File Picker in Inkscape)

Is that the same software or just another design?

Anyway, the file picker unfortunately is really awful. It is extremely slow, often freezes, the ordering is different from the File Manager, the path isn't displayed ([CTRL]+[L] doesn't work), thumbnails are not shown. It really makes it hard to work with, it is almost unusable for productive work.

Is there no way to use the File Manager as File Picker or to replace it?

2 Likes

It is not so easy.

The short answer is "yes" by replacing it with Zenity or XDG-desktop-portal but because some applications hardcode which file picker to choose into their software, it can make it tricky - or at least not all apps will use your replacement.

2 Likes

Do you know how I can replace it? xdg-desktop-portal was installed already:

Portals can tell the system which file picker to use.

If you are using Nemo, you can set Nemo's file picker.

sudo nano /etc/xdg/xdg-desktop-portal-gtk/gtk-filechooser.ini

This will offer to create the file, since it will not exist in Zorin OS.
Content:

[FileChooser]
FileManager=nemo

Save the file - restart to test. Bear in mind, that with Gnomes tight integration and the sandboxing of xdg-desktop-portal, this may not work with all apllications.

Zorin Core users might also just use the older file picker:
gsettings set org.gtk.Settings.FileChooser gtk-file-chooser-backend "gtk2"

4 Likes

Thank you!

Yes, I use Nemo. I tried it, but at least for Google Chrome, Kicad, Inkscape and OpenSCAD it seems not to work, so I don't know if this setting is even active.

You might remove the gnome-specific package, to see if that helps:

sudo apt remove xdg-desktop-portal-gnome

I have never run that command on Core so Read the terminal output before advancing to ensure no critical packages get taken along with it.

Does that look safe? :face_with_peeking_eye:

Yes, this will only uninstall that one package.

Always watch out for that list of packages under the "The following packages will be REMOVED". If it contains more than what you asked for, those may include necessary dependencies that can break other parts of the system.

1 Like

This unfortunately also didn't work :frowning:

The File Picker is backed in in the Gnome Desktop. Unfortunately it isn't replaceable like the File Manager itself.