Provide facility to invoke alternate payload applications
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 30/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- documentation
Piste de recherche
Aucun fichier ni test n’est nommé ; commencez par examiner la spécification AppImage et ses règles d’invocation existantes. Déterminez quelles méthodes de sélection de programme la spécification devrait standardiser, puis définissez le comportement de recherche et de fallback de AppDir, la gestion de argv[0] et le passage des arguments comme critères d’achèvement.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
-
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 94
- Forks
- 30
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de AppImage/AppImageSpec
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
AppImage/AppImageSpec#60 · 7 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
AppImage/AppImageSpec#59 · 15 commentaires · 2 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
AppImage/AppImageSpec#48 · 2 commentaires ·
-
help wanted
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
AppImage/AppImageSpec#44 · 10 commentaires · 1 réaction ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
AppImage/AppImageSpec#40 · 1 commentaire ·
Toutes les issues de AppImage/AppImageSpec
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
MPCoreDeveloper/SharpCoreDB#531 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
IzzyOnDroid inclusionOuverteF-Droid FOSS question
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
d4rken-org/butler#365 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 94/100
githubnext/gh-aw-workshop#6293 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
ShaftHQ/chaosengine-harness#423 ·
Les mainteneurs répondent en général sous 1 jour
-
[External Plugin]: zooopOuverteexternal-plugin ready-for-review
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
github/awesome-copilot#6655 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour