Find QEMU on PATH too

Aperta Adatta ai principianti
#38 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
electron, react, typescript
Ambito
desktop

Direzione di ricerca

Inizia da findQemu in src/main/paths.ts, che controlla la cartella dei dati e C:\Program Files\qemu. Aggiungi una scansione del PATH dopo questi due percorsi, dividendo process.env.PATH su ; e saltando le voci vuote, per trovare qemu-system-x86_64.exe. Passa l'ambiente come parametro in modo che un test unitario in tests/ possa usare una cartella temporanea come PATH fittizio, prendendo tests/config.test.ts come modello. È completato quando il test passa con npm test, npm run typecheck non riporta errori, e il README e la wiki indicano che PATH funziona.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement first issue

findQemu in src/main/paths.ts only checks VMs\qemu and C:\Program Files\qemu. People who install QEMU with scoop, winget to a custom folder, or MSYS2 have it on PATH, and the app says QEMU isn't found.

Expected

If QEMU isn't in either of those places but qemu-system-x86_64.exe is on PATH, the app uses that one and the status bar shows its version.

Acceptance criteria

  • after the two current locations, findQemu walks process.env.PATH (split on ;, skip empty entries) for qemu-system-x86_64.exe
  • order stays: data folder, Program Files, then PATH
  • unit test in tests/ with a temp folder put on a fake PATH (pass the env in, don't change the real one)
  • README Requirements line and the wiki Installing page say PATH works

Files

  • src/main/paths.ts (findQemu)
  • tests/config.test.ts is a good example of a small pure test

Getting set up

  1. Fork and clone, then npm install and npx install-electron --no (full steps in CONTRIBUTING.md)
  2. npm run dev:web shows the UI in a browser with a fake backend, no QEMU needed. npm run dev runs the real app
  3. Before the PR: npm run typecheck and npm test

Comment here if you want to take it, so nobody doubles up. Ask anything in this issue and I will answer here, usually within a few days.

Lingua principale
TypeScript
Stelle
3
Fork
0
Merge medio
2m
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di A21-devs/Virtual-Machine-Manager

Tutte le issue di A21-devs/Virtual-Machine-Manager

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.