No terminal window on windows

This commit is contained in:
2026-02-13 20:59:47 +01:00
parent a9e626393c
commit 8e369ebd5a
5 changed files with 201 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ This program runs on the users machine and listens on a loopback address only
- Exposes `GET /health` for a simple health check.
- Exposes `GET /open?path=...` and `POST /open` to open a folder.
- Exposes `GET /control` (HTML) and `GET /logs` (text) to view recent logs.
- Normalizes and validates the requested path:
- Accepts absolute paths only.
- If a file path is provided, it opens the containing directory.
@@ -150,6 +151,8 @@ Notes:
- Installs to `%LOCALAPPDATA%\luxtools-client\luxtools-client.exe`
- Stores config in `%LOCALAPPDATA%\luxtools-client\config.json`
- Re-running `install` updates the EXE in place and refreshes the task.
- Windows builds use the GUI subsystem, so the app starts without a console window.
- Logs are written next to `config.json` and can be viewed at `http://127.0.0.1:8765/control` or `http://127.0.0.1:8765/logs`.
## API
@@ -195,6 +198,14 @@ curl -i \
'http://127.0.0.1:8765/open?path=/tmp'
```
### `GET /logs`
Returns recent log output as plain text.
### `GET /control`
Shows a simple HTML page with recent log output.
## OS support
- Linux: uses `xdg-open`.