Can't right click and save image from any browser

Hi,
I am using CachyOS with Wayfire.

I can’t save an image from my browser. No save image dialog box appears, and no save appears to have happened when i check my file system

this is the case with both Brave browers and Firefox

Therefore it seems the issue is not specific to the browser.

Following advice from AI, i tried confirming that xdg-desktop-portal-gtk is installed, and it is installed. I also tried re-installing it.

Also, for a little while (though this stopped happening) I got the following error message appear on my terminal while trying to save an image from my brower in another window

[3719:3719:0714/101135.303917:ERROR:components/dbus/xdg/request.cc:173] Request ended (non-user cancelled)

Even though i don’t get this errror message just now, this could give a clue as to what is happening, though at my current level of experience, I don’t know what that would be

Would be grateful for any ideas for anything else i should try to do?

Thank you !
T

I don’t know much about Wayfire as I think this is the first question I’ve seen about it in all the time I’ve been on these forums.

Unfortunately, I think that’s where the “problem” is. Your xdg-desktop-portal doesn’t appear to be active, even if you have the -gtk one installed. And I haven’t the foggiest idea on how to configure Wayfire to do that.

This appears to be the closest I can get to finding documentation on Wayfire and xdg-desktop-portal. But I know Hyprland and Niri; Wayfire config is still Greek to me.

Hey Dirge,

you may not be a Wayfire expert - but you have just been VERY helpful to me, and because of your advice I have now solved the problem

From what you said, i just searched ‘how do i modify wayfire.ini to make sure that xdg-desktop-portal is active for every session?’

Following from the search results
I edited the wayfire.ini file (which is found in /home/usr/username/.config) to add the following two additions to the autostart section of the wayfire.ini file

0_0 = systemctl --user import-environment
xdg = sleep 1 && (XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-port

and also i added

0_environment = dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY XAUTHORI>
export GTK_USE_PORTAL=1

I got to admit i don’t “really really” know what these modifications do, except they (obviously) open the appropriate app and then tell it what to do

Anyway, it worked!

Reminder to self - make a copy of this modified wayfire.ini file and store it somewhere in case I need to re-install everything.

Many thanks!
T

Glad to hear that what I said was somehow of use.

I felt pretty confident that I understood the issue but I just didn’t have any idea how to put a solution into effect for a different Wayland compositor from what I usually use.

This is good advice. I have hyprland.conf files going back four “generations” of installs that I occasionally still reference. Much less so than I did back in the beginning, but still, keeping documentation of what changes you’ve made is an invaluable resource.