startSynchronousProcess/startDetachedProcess don't work correctly on MacOS

Abierto
#2,299 35 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
desktop

Línea de trabajo

Start by reading the attached script and locating the implementations of startSynchronousProcess and startDetachedProcess. Reproduce the custom action on macOS and check how the executable and arguments are passed; done means the program runs once with all arguments intact.

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

Descripción

Importance: Low Type: Improvement

I'm trying to register and run a custom action on MacOS. The script registers ok and QON says that the script is valid.

Expected behaviour

Expect QON to run the script and run startSynchronousProcess/startDetachedProcess correctly and the program with arguments is run e.g. "/usr/bin/local/git commit -m "My message" file_name.

Actual behaviour

A terminal window opens and the executable name is the only command that is passed to the terminal. I see "/usr/local/bin/git ; exit;". A second terminal window opens with the file name being executed as a command. The rest of the arguments are lost.

Steps to reproduce

Please see attached script.

Output from the debug section in the settings dialog
Expand
Relevant log output in the Log panel

[11:07:51] [status] The scripting engine was reloaded
[11:07:56] [scripting] customActionInvoked - gitCommit
[11:07:56] [scripting] /usr/local/bin/git
[11:08:00] [scripting] My message
[11:08:00] [scripting] /usr/local/bin/git commit -m "My message" /Volumes/EncNotes/notes/test.txt
[11:08:00] [scripting]
[11:08:00] [scripting] customActionInvoked - gitCommit

Expand
[git-commit.txt](https://github.com/pbek/QOwnNotes/files/7549154/git-commit.txt)
Lenguaje dominante
C++
Estrellas
5.9k
Forks
499
Merge medio
4 h 4 min
PR fusionados (30 d)
3

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 pbek/QOwnNotes

Todos los issues de pbek/QOwnNotes

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.