regolith-linux / regolith-desktop

Meta package for the Regolith Desktop Environment
1.48k stars 31 forks source link

File Chooser does not work in regolith-sway #1027

Open gogsbread opened 4 days ago

gogsbread commented 4 days ago

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:

Expected behavior FIle chooser should launch

Installation Details

kgilmer commented 4 days ago

@SoumyaRanjanPatnaik is this expected behavior for sway session in 3.2?

SoumyaRanjanPatnaik commented 3 days ago

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

gogsbread commented 3 days ago
- 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).

develNor commented 3 days ago

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

Version without Problem

SoumyaRanjanPatnaik commented 3 days ago
  • 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

gogsbread commented 1 day ago

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.