MassOS-Linux / MassOS

Main source repository for the MassOS operating system.
https://massos.org
Other
97 stars 8 forks source link

[Bug]: Firefox is very slow to start #29

Closed mfat closed 2 years ago

mfat commented 2 years ago

Checklist

MassOS version

2022.04

Kernel version

Linux 5.17.1-massos #1 SMP PREEMPT Tue Mar 29 06:14:09 UTC 2022 x86_64

Subject

Expected Behavior

I expect Firefox to open quickly as the whole system is very snappy

Actual Behavior

Firefox takes a long time to start. Unusually long.

Steps to reproduce

Open Browser

Additional Information

No response

TheSonicMaster commented 2 years ago

Thanks for pointing this out. I can confirm this is a bug affecting MassOS version 2022.04 and later. I have been looking into it for a while now, and will keep this issue's comments updated as necessary.

TheSonicMaster commented 2 years ago

It looks like this issue started with Firefox 98. Firefox 97 and previous versions, including Firefox ESR 91, do not have this issue. Until this gets fixed, I assume for now as a workaround you could use one of these versions older versions (all releases can be downloaded from https://archive.mozilla.org/pub/firefox/releases/), or use another browser. It's not ideal, but hopefully this issue will be fixed soon.

TheSonicMaster commented 2 years ago

This should now be fixed in https://github.com/MassOS-Linux/MassOS/commit/bb9bd5f7d2deb06c3a8ddb4b71cec4b543d01562.

Providing it doesn't cause subsequent regressions, this fix will be included in the next release of MassOS, which will be 2022.07. However you can apply the fix immediately by doing the following:

  1. Open a terminal (Control+Alt+T).
  2. Switch to root by running sudo su or pkexec su. Type your user password if prompted.
  3. Copy and paste this (if you get a warning about a dangerous paste, ignore it and continue), then press enter:
    cat > /etc/xdg/autostart/xdg-desktop-portal-gtk.desktop << "END"
    [Desktop Entry]
    Type=Application
    Name=Portal service (GTK/GNOME implementation)
    Exec=/bin/bash -c "dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY; systemctl start --user xdg-desktop-portal-gtk.service"
    END
  4. Reboot or logout and log back into your desktop. The issue should be fixed.
TheSonicMaster commented 2 years ago

The fix is now incorporated in the latest release (2022.07), https://github.com/MassOS-Linux/MassOS/releases/tag/v2022.07.