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

Flatpak can get stuck when toggling "Start automatically at system boot" #202

Closed
K0-RR opened this issue Feb 8, 2024 · 3 comments
Closed

Comments

@K0-RR
Copy link

K0-RR commented Feb 8, 2024

flatpak run codes.merritt.Nyrna
Gtk-Message: 10:33:33.794: Failed to load module "appmenu-gtk-module"

(nyrna:2): Gdk-CRITICAL **: 10:33:33.820: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed

(nyrna:2): Gdk-CRITICAL **: 10:33:35.253: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
flutter:   ERROR ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
flutter:   ERROR │ org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Background” on object at path /org/freedesktop/portal/desktop
flutter:   ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
flutter:   ERROR │ #0   DBusClient._callMethod (package:dbus/src/dbus_client.dart:1126)
flutter:   ERROR │ #1   <asynchronous suspension>
flutter:   ERROR │ #2   DBusClient.callMethod (package:dbus/src/dbus_client.dart:621)
flutter:   ERROR │ #3   <asynchronous suspension>
flutter:   ERROR │ #4   XdgBackgroundPortal.requestBackground.<anonymous closure> (package:xdg_desktop_portal/src/xdg_background_portal.dart:68)
flutter:   ERROR │ #5   <asynchronous suspension>
flutter:   ERROR │ #6   XdgPortalRequest._onListen (package:xdg_desktop_portal/src/xdg_portal_request.dart:39)
flutter:   ERROR │ #7   <asynchronous suspension>
flutter:   ERROR ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
flutter:   ERROR │ ⛔ Uncaught platform error
flutter:   ERROR └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@Merrit
Copy link
Owner

Merrit commented Feb 8, 2024

Hey, thanks for opening the issue~

Could you please provide the following:

  • Distro / version
  • Nyrna version

Thanks!

@K0-RR
Copy link
Author

K0-RR commented Feb 9, 2024

Rhino Linux (Ubuntu rolling)
Nyrna 2.18.0

@Merrit
Copy link
Owner

Merrit commented Feb 12, 2024

This is happening because your system is not offering org.freedesktop.portal.Background.

If you are using GNOME it should be provided by xdg-desktop-portal-gnome. I tried spinning up Rhino Linux in a VM, but even after installing xdg-desktop-portal-gnome it still doesn't work.

You'll have to check with them as to why the distro isn't providing it as expected.

@Merrit Merrit changed the title Freezes when option "Start automatically at system boot" or "Start hidden in system tray" is being enabled Flatpak can get stuck when toggling "Start automatically at system boot" Feb 20, 2024
Merrit added a commit that referenced this issue Feb 21, 2024
Barrier is dismissible because the SettingsCubit.toggleAutostart() method
can fail for Flatpak, and for some reason we can't catch the error.

This way, the user can dismiss the barrier instead of being stuck.

Resolves #202
@Merrit Merrit closed this as completed in 6a20e4e Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants