Provide facility to invoke alternate payload applications

Abierto
#8 10 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
30/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado

Línea de trabajo

No se nombran archivos ni pruebas; empieza revisando la especificación de AppImage y sus reglas de invocación existentes. Determina qué métodos de selección de programas debe estandarizar la especificación y define el comportamiento de búsqueda y fallback de AppDir, el manejo de argv[0] y el paso de argumentos como criterios de finalización.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.


  1. 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.

  2. 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 foobar contained in argv[1] and argv[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.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
94
Forks
30
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de AppImage/AppImageSpec

Todos los issues de AppImage/AppImageSpec

Issues similares

Más issues de Documentation

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.