Add secondary, more detailed version marker and specify `TARGET_APPIMAGE`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- linux
- Lĩnh vực
- documentation, operating-systems
Hướng nghiên cứu
Bắt đầu bằng việc đọc đặc tả AppImage hiện tại và các ý tưởng được tham chiếu trong #26. Xác định cách đặc tả marker kiểu phụ và TARGET_APPIMAGE, bao gồm hỗ trợ runtime tĩnh và dùng chung, sau đó ghi lại các yêu cầu tương thích và tiêu chí xác thực.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
While experimenting with fully static type-2 runtime builds, we found that this breaks AppImageLauncher's integration method which currently depends on LD_PRELOAD. I recently discussed this problem with @probonopd, and we came up with a solution.
Some background: AppImageLauncher depends on binfmt_misc for its core UX feature. All calls to (executable) AppImages are intercepted by AppImageLauncher. Of course, it cannot "just launch" the AppImage any more, resulting in a loop. It needs to bypass binfmt_misc therefore to launch the AppImages after treating them.
To do so, currently, AppImageLauncher extracts the runtime into an in-memory buffer and there, it patches out the magic bytes. This allows it to launch the binary normally while minimizing RAM consumption and avoiding having to copy the entire AppImage to a temporary location. To my own surprise (at least to some extent), this works extremely reliably with the classic upstream AppImageKit type-2 runtime and also the good old type 1 runtime.
Of course, AppImageLauncher needs to tell the runtime where the AppImage really is. This is done by hooking into some of the functions we know it uses that, e.g., open a file handle on the AppImage file on the disk. There, the path can be patched dynamically.
In the past, in the very first versions, TARGET_APPIMAGE even was the main method of telling the runtime which AppImage to launch. Back then AppImageLauncher shipped its own upstream type-2 runtime, which limited the user experience quite a bit. The flag would work with the method described above, though. There are multiple reasons I no longer use it, though. First of all, this feature never made it into the spec, which means that only the upstream runtime can work with it and all other AppImages would crash. We cannot safely assume that all type-2 AppImages provide it. Even if just 10% of the AppImages would be incompatible, they would just crash. The "hook into them with LD_PRELOAD method" is not affected by this limitation. We have no means of distinguishing between those runtimes.
To make the operation more reliable and allow the tool to work with fully static runtimes, I think it would be totally sufficient to just standardize the $TARGET_APPIMAGE feature. All compliant runtimes would need to support it, if it wouldn't work we could make users report that as a bug then. In the same moment, we could explicitly mention that both static and shared builds are permitted.
To communicate that the feature is available, we need to bump the AppImage type/version in some way. In my opinion, it makes no sense to release an entirely new type-3 at this point. What we could do is release a type 2.1 that adds these features. The current magic bytes embedding is not capable of this, though. Therefore, we could pick up the ideas from #26 and add a second(!) more fine grained version marker. This serves two purposes: first, it allows us a "soft start" into actually versioning and releasing the spec, something we have wanted to do for a while already. Second, by adding some "minor" version number (or even going full semver), tools like AppImageLauncher can reliably detect such new features like $TARGET_APPIMAGE. Third, by adding the version marker as a second feature, all tools that currently rely on the type-2 MIME type (or otherwise use the magic bytes) will continue to work. After all, we just add new features, but the type itself is the same and everything will continue to work. Only tools that need new features need to check for the new marker as well. Third, this serves as a test bed for the new proposed type-3 version marker that will replace the magic bytes at offset 0x8 in the long term to improve compatibility with various loaders.
TL;DR: let's add $TARGET_APPIMAGE and a new, secondary AppImage type marker to the specification.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 94
- Fork
- 30
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AppImage/AppImageSpec
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
AppImage/AppImageSpec#60 · 7 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
AppImage/AppImageSpec#59 · 15 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
AppImage/AppImageSpec#48 · 2 bình luận ·
-
help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
AppImage/AppImageSpec#44 · 10 bình luận · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
AppImage/AppImageSpec#40 · 1 bình luận ·
Tất cả issue của AppImage/AppImageSpec
Issue tương tự
-
IzzyOnDroid inclusionĐang mởF-Droid FOSS question
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
d4rken-org/butler#365 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
ShaftHQ/chaosengine-harness#423 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[External Plugin]: zooopĐang mởexternal-plugin ready-for-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/awesome-copilot#6655 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
X11Libre/xserver#4255 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
nightly-cleanup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
max-sixty/worktrunk#4939 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày