Provide facility to invoke alternate payload applications
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
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Không có tệp hoặc kiểm thử nào được nêu tên; hãy bắt đầu bằng việc xem xét đặc tả AppImage và các quy tắc gọi hiện có của nó. Xác định những phương thức lựa chọn chương trình nào mà đặc tả nên chuẩn hóa, sau đó định nghĩa hành vi tra cứu và fallback của AppDir, cách xử lý argv[0] và việc truyền đối số làm tiêu chí hoàn thành.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
While most applications do have a main entry point to get to all their functionality, plenty of apps ship with additional executables for various purposes, like cvlc (a command-line-only interface for VLC), editcap (a command-line pcap file splicer with Wireshark), and so forth. These might be additional binaries, or might be a change of behavior based on the argv[0] value of the main application at runtime.
There should be some way to invoke these alternate programs.
-
The spec should provide a way to invoke an alternate program than the main payload.
-
The spec could provide a way to enumerate additional names and the locations of the respective programs within the AppDir explicitly, through a metadata file (not strictly necessary if the other options below are also implemented).
-
In the absence of explicit enumeration, or if an attempted program name was not enumerated, the AppImage should fallback by looking for the program name in a standard search path within the AppDir, e.g.,
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin. -
If there is still no matching program after looking at the explicit list and the search path, fallback to invoking the main payload application.
-
In all cases, set
argv[0]to the attempted program name, possibly with a prepended path if one is found within the AppDir. This allows a program to change behavior based only on the name used to invoke it.
-
-
The spec should specify one or more standard ways to identify which program was intended to be invoked by the user. Possibilities include (any or all could be implemented; the first two are probably the most useful):
-
Use
argv[0]of the invoked AppImage to select the desired program (this works simply by symlinking the AppImage itself to the desired alternate name). -
Use a special command argument at the start of the argument list which is unlikely to be meaningful to payload applications, e.g.
--AppImageRun foobarcontained inargv[1]andargv[2], with the remaining arguments passed through to the application. This could be used in .desktop files. -
Use a predefined environment variable name, which could be used in a wrapper script.
-
- 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