Picture Preview for File Upload in firefox

Hello

In windows 10, using FireFox, I am able to upload a network image file to twitter and be able to preview the image before uploading. Can it be done in EndeavourOS?

It’s not about the OS/distro in this case. What you need is the correct file manager and/or XDG implementation.

It looks like you are either using Nemo (Cinnamon/Budgie) or Nautilus (Gnome).

If you want a pop-up preview, then you’ll probably need to install Dolphin, then switch your XDG implementation to KDE. This is an easy thing to do, but it is tedious, and requires multiple packages you may not already have installed. So, it may not be worth it for you.


The Process (If You Really Need Pop-up Previews)

Minimum required packages:

sudo pacman -Syu xdg-desktop-portal-kde dolphin

Other packages so things don’t look out-of-place:

sudo pacman -Syu kvantum kvantum-qt5 qt5ct qt6ct

Further reading: https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications

Lastly, just installing the packages doesn’t do anything, you also need to edit some files.

mkdir -p ~/.config/xdg-desktop-portal
nano ~/.config/xdg-desktop-portal/portals.conf

Add the following:

[preferred]
default=kde

Then:

mkdir -p ~/.config/systemd/user/xdg-desktop-portal.service.d
nano ~/.config/systemd/user/xdg-desktop-portal.service.d/override.conf

Add the following:

[Service]
Environment="XDG_CURRENT_DESKTOP=KDE"

Finally, log out and log back in (or restart).

If you don’t like the final result, remove the files and/or folders, and uninstall the additional packages to go back to what you have now.

sudo pacman -Rs xdg-desktop-portal-kde dolphin kvantum kvantum-qt5 qt5ct qt6ct
1 Like

Thanks I will look into it. Yes it is important to me.

I was using Dolphin. Proceed on this line?

sudo pacman -Syu kvantum kvantum-qt5 qt5ct qt6ct
1 Like