Provide facility to invoke alternate payload applications
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
研究方向
未指定任何檔案或測試;請先檢視 AppImage 規格及其現有的呼叫規則。確定規格應標準化哪些程式選取方法,然後將 AppDir 的查找與 fallback 行為、argv[0] 的處理以及引數傳遞定義為完成標準。
由索引模型根據 Issue 內容生成。
描述
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.
-
- 主要語言
- 沒有語言資料
- 星號
- 94
- 分支
- 30
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
AppImage/AppImageSpec 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#60 · 7 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#59 · 15 則留言 · 2 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 35/100
AppImage/AppImageSpec#48 · 2 則留言 ·
-
help wanted
難度 5/5 一週以上 新手友好度 25/100
AppImage/AppImageSpec#44 · 10 則留言 · 1 個 reaction ·
-
難度 5/5 一週以上 新手友好度 35/100
AppImage/AppImageSpec#40 · 1 則留言 ·
查看 AppImage/AppImageSpec 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
MPCoreDeveloper/SharpCoreDB#531 · 1 則留言 ·
維護者通常 2 天內回覆
-
F-Droid FOSS question
難度 1/5 1 小時以內 新手友好度 75/100
d4rken-org/butler#365 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 94/100
githubnext/gh-aw-workshop#6293 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 85/100
ShaftHQ/chaosengine-harness#423 ·
維護者通常 1 天內回覆
-
external-plugin ready-for-review
難度 2/5 1-3 小時 新手友好度 72/100
github/awesome-copilot#6655 · 1 則留言 ·
維護者通常 1 天內回覆