16
submitted 8 months ago* (last edited 8 months ago) by Xirup@lemmy.dbzer0.com to c/linux4noobs@programming.dev

I wish to change the default Nautilus file dialog that Firefox uses, to Dolphin (my main file manager) but I cannot find any solution. Every single time I download an image, Nautilus is opened instead of Dolphin.

I tried adding GTK_USE_PORTAL=1 to my env variables, and It didn't work, then I tried changing mimetype and also did not work, I also tried modifying the xdg-portal (sorry if I'm wrong) to use xdg-desktop-portal-kde instead, but I cannot accomplish this since I didn't understand at all the Arch wiki and IIRC some files aren't exactly where the Arch wiki was pointing them.

As a last attempt, I open about:config in Firefox and search for widget.use-xdg-desktop-portal and set it to True, and still I keep having that old Nautilus as my file picker in Firefox, and this last thing usually worked well for me in Plasma.

Edit: I just restarted my pc and now randomly seems that Dolphin it's the file dialog for Firefox, I don't have a single clue how this happen.

top 8 comments
sorted by: hot top controversial new old
[-] rrconkle@lemmy.zip 1 points 8 months ago

Have you installed xdg-desktop-portal-kde?

[-] Xirup@lemmy.dbzer0.com 1 points 8 months ago

Yep, alongside with xdg-desktop-portal-gnome although I don't remember installing it..

[-] rrconkle@lemmy.zip 1 points 8 months ago

Hmm, the other thing I can think of right now is have you relogged of rebooted? IIRC you need to do that for it to work.

[-] Xirup@lemmy.dbzer0.com 1 points 8 months ago

I tried several times before any change but still doesn't seem to change anything. Although something courious heppened, I removed the xdg-desktop-portal-gnome package and then reboot my system, and now when I try to download any file I don't get any file dialog, nothing happens. I tried running Firefox from the terminal to read the logs but it probably doesn't work that way because I didn't get any logs.

[-] rrconkle@lemmy.zip 1 points 8 months ago

xdg-desktop-portal-gnome is the nautilus portal

How are you setting the enviroment variable?

[-] Xirup@lemmy.dbzer0.com 1 points 8 months ago* (last edited 8 months ago)

I have little experience with xdg so I might be sound as an ignorant but I tried following what the Arch wiki says about forcing a DE and since I'm using i3 and it's a window manager I force my xdg-portal to think I'm in Plasma, but I still have the same problem.

[-] rrconkle@lemmy.zip 1 points 8 months ago

Hmm, I don't use a window manager so i've never used that but how are you setting GTK_USE_PORTAL=1, I have mine in /etc/environment

[-] Xirup@lemmy.dbzer0.com 1 points 8 months ago

I also have mine in /etc/enviroment, along with these other default variables:

along with these other default variables:

QT_QPA_PLATFORMTHEME=qt5ct
QT_STYLE_OVERRIDE=kvantum
EDITOR=nano
BROWSER=firefox
GTK_USE_PORTAL=1
this post was submitted on 19 Feb 2024
16 points (100.0% liked)

linux4noobs

1324 readers
2 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 1 year ago
MODERATORS