#Firefox "show in folder" doesn't work

22 messages Β· Page 1 of 1 (latest)

manic locust
#

Hi folks.

In firefox, when I download something and I select show in folder, it does not work, nothing happens.
I have tried running firefox in a terminal, but no errors are shown
I have tested gio open . and xdg-open . both work correctly and open Dolphin.

Bit lost from here. Any ideas?

toxic hemlock
#

Are you running Firefox in a Flatpak?

manic locust
#

No, it's from pacman

#

Although, potentially of interest, I was running strace on it and I did notice it was doing a lot of flatpak stuff. Definitely not installed via flatpak though, doesn't show up in flatpak list.

#

eg

newfstatat(AT_FDCWD, "/home/azelphur/.local/share/flatpak/exports/share/mime/mime.cache", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/azelphur/.local/share/flatpak/exports/share/mime/globs", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/home/azelphur/.local/share/flatpak/exports/share/mime/magic", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/var/lib/flatpak/exports/share/mime/mime.cache", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/var/lib/flatpak/exports/share/mime/globs", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/var/lib/flatpak/exports/share/mime/magic", 0x7ffc81d3b260, 0) = -1 ENOENT (No such file or directory)

seems potentially relevant, I have no idea what the ".mime.types" file is, google has been unhelpful

grave valve
manic locust
grave valve
#

I had to edit ~/.config/mimeapps.list and set org.kde.dolphin.desktop as the default for inode/directory
damn, the command i gave does exactly that

#

but glad you got it fixed

#

also i don't recommend settings GTK_USE_PORTAL=1 globally

manic locust
#

strange, I ran it but that file still had it set to kitty, which is a terminal emulator, guess the command didn't work for some reason

grave valve
#

some apps misbehaves with portal still

manic locust
#

I see, might make a new .desktop file for firefox and set it there

grave valve
manic locust
#

Not sure what added associations are, but you're right since it breaks Discord file upload πŸ˜‚

grave valve
manic locust
#

ah, I changed mine in the default applications section

grave valve
#

added associations tell what apps can open what mimetypes (file, url, etc)

manic locust
#

Hmm, what's a good way of setting GTK_USE_PORTAL=1 just for firefox and chrome? initially I thought of editing the .desktop, but that wouldn't help me if I run it from the terminal, and if I overwrite /usr/bin/firefox, an update would just put it back

grave valve
#

default is that, but defins what the default apps is
while added associations can have multiple apps in it, and is opened via how it is sorted

#

ways of doing this

  • edit .desktop as you said, for runnning in terminal, you would use gtk-launch desktop-file-here, so gtk-launch firefox, so .desktop is not included
  • make a firefox shell script that sets the variable and runs /usr/bin/firefox in /usr/local/bin or ~/.local/bin (latter needs to be manually added to path)
manic locust
#

fair enough, thanks πŸ™‚