Session type in launchctl

valley

Registered
i can not execute:
> launchctl load -S Aqua com.file.plist
com.file: Invalid argument

but
>launchctl load com.file.plist

works fine, why? :(
 
Last edited:
Spaces are important!
In your example, the first command has an extra space at the beginning of the command.
That command returns with an error
The second command has no space there, and works.
Did you think that both would work?
 
$ sudo launchctl load com.file.plist
$ sudo launchctl load -S Aqua com.file.plist
com.file: Invalid argument


yes, spaces are important. but it is not reason for this error.
 
Ah, you've edited your first post now!
And, glad to see it's not just that one little space, but different arguments.
 
Maybe with that file only some of the other options with tag -S work. So looks like it doesn't like Aqua as an argument for -S.
Aqua, LoginWindow, Background, StandardIO, System.... how about StandardIO or System?
 
Back
Top