Skip to content

Commit

Permalink
Comply with style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
GottemHams committed Jul 3, 2022
1 parent dca1d8b commit dec8577
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Library/Homebrew/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,13 @@ def to_plist
base[:StartCalendarInterval] = @cron.reject { |_, value| value == "*" }
end

# Adding all session types has as the primary effect that if you initialise it through e.g. a Background session and you later "physically"
# sign in to the owning account (Aqua session), things shouldn't flip out.
# Also, we're not checking @process_type here because that is used to indicate process priority and not necessarily if it should run in a
# specific session type. Like database services could run with ProcessType Interactive so they have no resource limitations enforced
# upon them, but they aren't really interactive in the general sense.
base[:LimitLoadToSessionType] = ["Aqua", "Background", "LoginWindow", "StandardIO", "System"]
# Adding all session types has as the primary effect that if you initialise it through e.g. a Background session
# and you later "physically" sign in to the owning account (Aqua session), things shouldn't flip out.
# Also, we're not checking @process_type here because that is used to indicate process priority and not
# necessarily if it should run in a specific session type. Like database services could run with ProcessType
# Interactive so they have no resource limitations enforced upon them, but they aren't really interactive in the
# general sense.
base[:LimitLoadToSessionType] = %w[Aqua Background LoginWindow StandardIO System]

base.to_plist
end
Expand Down

0 comments on commit dec8577

Please sign in to comment.