-
Notifications
You must be signed in to change notification settings - Fork 0
IPC Route dialog
Timon Home edited this page Mar 19, 2026
·
2 revisions
Native OS file picker dialogs. All three handlers use dialog.showOpenDialog() attached to mainWindow, making them modal to the application.
Transport: invoke
Opens a file picker filtered to .jar files.
No parameters.
string | null // absolute path, or null if cancelled{ filters: [{ name: 'JAR', extensions: ['jar'] }], properties: ['openFile'] }Transport: invoke
Opens a directory picker.
No parameters.
string | null{ properties: ['openDirectory'] }Transport: invoke
Opens a file picker for selecting a Java executable. Accepts .exe and any extension (Unix compatibility).
No parameters.
string | null{ filters: [{ name: 'Executable', extensions: ['exe', '*'] }], properties: ['openFile'] }All three are called from the folder icon buttons in ConfigTab → Files & Paths. The renderer checks for null before applying the returned path to the draft profile:
const p = await window.api.pickJar()
if (p) update({ jarPath: p })