Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Chooser does not work in regolith-sway #1027

Open
2 of 3 tasks
gogsbread opened this issue Jun 28, 2024 · 6 comments
Open
2 of 3 tasks

File Chooser does not work in regolith-sway #1027

gogsbread opened this issue Jun 28, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@gogsbread
Copy link

gogsbread commented Jun 28, 2024

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) #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:

  • Use any application that opens a file. Say, Ctrl+o in Chrome
  • File chooser will not launch
  • journalctl -f shows error message Backend call failed: No such interface “org.freedesktop.impl.portal.FileChooser” on object at path /org/freedesktop/portal/desktop
  • Unwrapping that error message, it looks like /usr/libexec/xdg-desktop-portal-gnome is running in some settings mode and hence it isn't handing the FileChooser dbus interface.
xdg-desktop-portal-gnome: Non-compatible display server, exposing settings only
  • I then observed we have /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 and xdg-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

  • Regolith Install Type: PPA
  • Regolith Version: 3.2
  • PPA url: testing-ubuntu-noble-amd64
  • Host OS (for PPA): Ubuntu 24.04
@gogsbread gogsbread added bug Something isn't working needs-triage Any bug that requires classification by a contributor labels Jun 28, 2024
@kgilmer
Copy link
Member

kgilmer commented Jun 29, 2024

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

@kgilmer kgilmer removed the needs-triage Any bug that requires classification by a contributor label Jun 29, 2024
@SoumyaRanjanPatnaik
Copy link

SoumyaRanjanPatnaik commented Jun 30, 2024

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
Copy link
Author

gogsbread commented Jun 30, 2024

  • gtk is active
~λ systemctl --user 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).

@develNor
Copy link

develNor commented Jun 30, 2024

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

  • ppa: testing-ubuntu-noble-amd64 noble main
  • installed on the 17.06
  • => Beta 1

Version without Problem

  • ppa: unstable-ubuntu-noble-amd64 noble main
  • installed on the 21.06

@SoumyaRanjanPatnaik
Copy link

  • 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
Copy link
Author

gogsbread commented Jul 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants