Open gogsbread opened 5 months ago
@SoumyaRanjanPatnaik is this expected behavior for sway session in 3.2?
No, this is not the expected behaviour. @gogsbread can you check if you have xdg-desktop-portal-gtk
and xdg-desktop-portal-wayland-config
installed ?
Please also attach the output for
echo $XDG_CURRENT_DESKTOP
and
systemctl --user show-environment | grep XDG_CURRENT_DESKTOP
Edit: The package name is xdg-desktop-portal-regolith-wayland-config
~λ systemctl --user is-active xdg-desktop-portal-gtk
active
~λ echo $XDG_CURRENT_DESKTOP; systemctl --user show-environment | grep XDG_CURRENT_DESKTOP
Regolith-Wayland:GNOME:sway
XDG_CURRENT_DESKTOP=Regolith-Wayland:GNOME:sway
- I couldn't find any `xdg-desktop-portal-wayland-config` packages. The package that is more aligned with sway is `xdg-desktop-portal-wlr`?
- As I observed earlier, `xdg-desktop-portal` is not activating gtk but it is activating gnome by virtue of `XDG_CURRENT_DESKTOP` having `GNOME`. I made xdg to activate `gtk`/`wlr` by changing `Environment` of `xdg-desktop-portal.service`. After this change, I see the filechooser, however, the chooser don't seem to respect gnome theming.
[Service] Environment=XDG_CURRENT_DESKTOP=gtk
Jun 29 22:11:14 systemd[1]: systemd-hostnamed.service: Deactivated successfully. Jun 29 22:11:15 dbus-daemon[17575]: [session uid=1000 pid=17575] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gnome' unit='xdg-desktop-portal-gnome.service' requested by ':1.89' (uid=1000 pid=18612 comm="/usr/libexec/xdg-desktop-portal" label="unconfined") Jun 29 22:11:15 systemd[17527]: Starting xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)... Jun 29 22:11:15 dbus-daemon[17575]: [session uid=1000 pid=17575] Successfully activated service 'org.freedesktop.impl.portal.desktop.gnome' Jun 29 22:11:15 systemd[17527]: Started xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
I had a similar issue that the filebrowser did not launch in Regolith 3.2 under Ubuntu 24.04.
In my case it was solved by using the unstable
stage instead of the testing
stage, so this might be related to something that was recently fixed. For Debugging here is more information about my used versions:
Version with Problem
testing-ubuntu-noble-amd64 noble main
Version without Problem
unstable-ubuntu-noble-amd64 noble main
- gtk is active
~λ scu is-active xdg-desktop-portal-gtk active
- variables
~λ echo $XDG_CURRENT_DESKTOP; systemctl --user show-environment | grep XDG_CURRENT_DESKTOP Regolith-Wayland:GNOME:sway XDG_CURRENT_DESKTOP=Regolith-Wayland:GNOME:sway
- I couldn't find any `xdg-desktop-portal-wayland-config` packages. The package that is more aligned with sway is `xdg-desktop-portal-wlr`? - As I observed earlier, `xdg-desktop-portal` is not activating gtk but it is activating gnome by virtue of `XDG_CURRENT_DESKTOP` having `GNOME`. I made xdg to activate `gtk`/`wlr` by changing `Environment` of `xdg-desktop-portal.service`. After this change, I see the filechooser, however, the chooser don't seem to respect gnome theming.
[Service] Environment=XDG_CURRENT_DESKTOP=gtk
Jun 29 22:11:14 systemd[1]: systemd-hostnamed.service: Deactivated successfully. Jun 29 22:11:15 dbus-daemon[17575]: [session uid=1000 pid=17575] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.gnome' unit='xdg-desktop-portal-gnome.service' requested by ':1.89' (uid=1000 pid=18612 comm="/usr/libexec/xdg-desktop-portal" label="unconfined") Jun 29 22:11:15 systemd[17527]: Starting xdg-desktop-portal-gnome.service - Portal service (GNOME implementation)... Jun 29 22:11:15 dbus-daemon[17575]: [session uid=1000 pid=17575] Successfully activated service 'org.freedesktop.impl.portal.desktop.gnome' Jun 29 22:11:15 systemd[17527]: Started xdg-desktop-portal-gnome.service - Portal service (GNOME implementation).
Hey sorry. The package name is xdg-desktop-portal-regolith-wayland-config
In my case it was solved by using the unstable stage instead of the testing stage, so this might be related to something that was recently fixed.
Thanks. This does help with the File Chooser issue. However, this update(or probably just regolith-sway) seems to introduce a theming issue. My dark theme switches back to light theme and no amount of regolith-look set <>; regolith-look refresh
is fixing this. I also feel this is beyond theming and that gnome settings that you apply in gnome control center is also not working; for ex, my two finger right-click is gone. The regolith-i3 is fine though and so is Ubuntu's default wayland.
Describe the bug File Chooser does not work in Regolith 3.2 Sway desktop (works in x11 desktop)
I understand that Regolith 3.2, with Ubuntu 24.04 support, is still in beta but you can use this for triaging. There is a similar issue(similar in error message) https://github.com/regolith-linux/regolith-desktop/issues/936 with a slightly different problem. I am opening this new bug since I am not sure what the status of the other one is given it has been open for more than 6 months
To Reproduce Steps to reproduce the behavior:
journalctl -f
shows error messageBackend call failed: No such interface “org.freedesktop.impl.portal.FileChooser” on object at path /org/freedesktop/portal/desktop
/usr/libexec/xdg-desktop-portal-gnome
is running in some settings mode and hence it isn't handing theFileChooser
dbus interface./usr/share/xdg-desktop-portal/portals/regolith.portal
which claims to handle all interfaces but it doesn't even activate. There is alsoxdg-desktop-portal-regolith
package that provides systemd service andxdg-desktop-portal-regolith
binary but that implementation doesn't seem to be complete as gnome is the one that is activating.Expected behavior FIle chooser should launch
Installation Details