#Firefox "show in folder" doesn't work
22 messages Β· Page 1 of 1 (latest)
Are you running Firefox in a Flatpak?
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
try ```
xdg-mime default org.kde.dolphin.desktop inode/directory
Been around the block with this but I've figured it out (above didn't work)
I had to edit ~/.config/mimeapps.list and set org.kde.dolphin.desktop as the default for inode/directory, and I had to set GTK_USE_PORTAL=1, but it works now π
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
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
some apps misbehaves with portal still
I see, might make a new .desktop file for firefox and set it there
maybe you're looking at added associations?
Not sure what added associations are, but you're right since it breaks Discord file upload π
there are two parts to the mimeapps.list file
added associations
and
default applications
ah, I changed mine in the default applications section
added associations tell what apps can open what mimetypes (file, url, etc)
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
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, sogtk-launch firefox, so.desktopis not included - make a
firefoxshell script that sets the variable and runs/usr/bin/firefoxin/usr/local/binor~/.local/bin(latter needs to be manually added to path)
fair enough, thanks π