J wrote:
Hello!

So, is there a way to change the file picker in browsers?

Recently i have switched from Gnome Files (Nautilus) to Thunar.

Yes, i use Gnome.

I have used the command

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

So.

|$ xdg-mime query default inode/directory thunar.desktop|

But then i noticed that file opener in browsers (Firefox-stable and Chrome) both are 
"Gnomish". I thought that it is Nautilus.

I went full speed and added

|xdg-mime default thunar.desktop x-directory/normal xdg-mime default 
thunar.desktop inode/directory |

to

|/.config/mimeapps.list .local/share/applications/mimeinfo.cache 
.local/share/applications/mimeapps.list /usr/share/applications/mimeapps.list |

Then i understood that it is not Nautilus, but Gtk File chooser.

Now i wonder if there is a way to use "native" Thunar and not this GTK file 
chooser?

I tried

|GTK_USE_PORTAL=1 google-chrome-stable|

No help.

I tried for Firefox

|ui.allow_platform_file_picker=true widget.use-xdg-desktop-portal=true|

in /about:config
/
(i did not know how to make it correctly so it looks like this)

https://i.ibb.co/6NfVH3X/Screenshot-from-2024-09-26-21-48-19.png 
<https://i.ibb.co/6NfVH3X/Screenshot-from-2024-09-26-21-48-19.png>

https://i.ibb.co/WsHwzCJ/Screenshot-from-2024-09-26-21-47-21.png 
<https://i.ibb.co/WsHwzCJ/Screenshot-from-2024-09-26-21-47-21.png>
Image <https://ibb.co/mSM19LN> Image <https://ibb.co/3kTqFKZ>
Also no help.

I read there is some bug with it in FF, but what about Chrome then?

I use Firefox-stable as a main browser.

Found this solution but dont know how to implement it here

https://github.com/hyprwm/Hyprland/discussions/4988 
<https://github.com/hyprwm/Hyprland/discussions/4988>
*
*Any ideas?

Have a look at:

https://wiki.archlinux.org/title/Firefox#XDG_Desktop_Portal_integration

Changing widget.use-xdg-desktop-portal.file-picker in about:config from 2 to 1 
gives me the kde file picker.

Regards.

Reply via email to