Skip to content

Commit

Permalink
tape: Use full path for launchctl
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Jan 3, 2025
1 parent c67e697 commit e9471e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tape
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ when 'launchd'
Launchd_file.write(Launchd_contents)

system(
'launchctl', 'bootstrap',
"gui/#{Open3.capture2('/usr/bin/id', '-u', ENV['USER']).first}",
'/bin/launchctl', 'bootstrap',
"gui/#{Open3.capture2('/usr/bin/id', '-u', ENV['USER']).first.chomp}",
Launchd_file.to_path
)

Expand All @@ -274,8 +274,8 @@ when 'launchd'

if ARGV[1] == 'off'
system(
'launchctl', 'bootout',
"gui/#{Open3.capture2('/usr/bin/id', '-u', ENV['USER']).first}",
'/bin/launchctl', 'bootout',
"gui/#{Open3.capture2('/usr/bin/id', '-u', ENV['USER']).first.chomp}",
Launchd_file.to_path
)

Expand Down

0 comments on commit e9471e9

Please sign in to comment.