monerod-gui/app/auto-launch/library/autoLaunchAPI/autoLaunchInit.ts
2024-10-29 15:42:58 +01:00

28 lines
771 B
TypeScript

// init - {Object}
// :appName - {String}
// :appPath - {String}
// :options - {Object}
// :launchInBackground - (Optional) {String} If set, either use default --hidden arg or specified one.
// :mac - (Optional) {Object}
// :useLaunchAgent - (Optional) {Boolean} If `true`, use filed-based Launch Agent. Otherwise use AppleScript
// to add Login Item
// :extraArguments - (Optional) {Array}
export interface AutoLaunchInit {
appName: string;
appPath: string;
options: AutoLaunchOptions;
}
export interface AutoLaunchOptions {
launchInBackground?: string | boolean;
mac?: {
useLaunchAgent?: boolean;
},
linux?: {
version?: string;
comment?: string;
},
extraArguments?: string[];
}