monerod-gui/app/auto-launch/library/autoLaunchAPI/autoLaunchInit.ts

25 lines
710 B
TypeScript
Raw Normal View History

2024-10-23 21:13:31 +00:00
// 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;
},
extraArguments?: string[];
}