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.

      • rrconkle@lemmy.zip
        link
        fedilink
        arrow-up
        1
        ·
        4 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.comOP
          link
          fedilink
          arrow-up
          1
          ·
          4 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
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            xdg-desktop-portal-gnome is the nautilus portal

            How are you setting the enviroment variable?

            • Xirup@lemmy.dbzer0.comOP
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              4 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
                link
                fedilink
                arrow-up
                1
                ·
                4 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.comOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  4 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