Skip to content

fix crash on sleep by switching appimage runtime - #6130

Merged
mr-cheffy merged 1 commit into
zen-browser:devfrom
Samueru-sama:patch-2
Mar 7, 2025
Merged

mr-cheffy merged 1 commit into
zen-browser:devfrom
Samueru-sama:patch-2

Conversation

@Samueru-sama

@Samueru-sama Samueru-sama commented Mar 7, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #4089 #3732 #4457

The uruntime is an alternative appimage runtime written in rust, it does not have the current bug that causes a crash on sleep, and it is fully 100% compliant to the appimage spec, including being static-pie which is not actually mentioned in the spec but needed for appimagelauncher to work.

It also has editable settings in the ELF that can change the mount behaviour, one of such is keeping the mount point, which means the appimage has launch times as fast as if it was a native application, for benchmarks see pkgforge-dev/ghostty-appimage#54

Review carefully please, I ran all the commands manually on my PC to make sure I had no errors in the steps but I can't be 100% sure without running the actual CI.

  • I also did a slight refactor by declaring ARCH=${{ matrix.arch }} this way it is easy to read and there is no need to specify the arch when calling appimagetool, also moved the update information to its own variable to make it easier to read as well.

  • Also removed the manual --comp zstd --mksquashfs-opt -Xcompression-level --mksquashfs-opt 10 flags since they were added to speed up the launch time slightly before by not going too high on the compression level, which isn't needed anymore, appimagetool defaults to zstd 15 when not specified.

This also has the benefit of faster launch times

Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
@Samueru-sama
Samueru-sama requested a review from mr-cheffy March 7, 2025 02:43
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. Bug labels Mar 7, 2025
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 7, 2025
@mr-cheffy
mr-cheffy merged commit 00533fb into zen-browser:dev Mar 7, 2025
@Samueru-sama
Samueru-sama deleted the patch-2 branch May 23, 2025 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zen reliably crashes on my laptop when I resume from suspend

2 participants