Skip to content

Commit

Permalink
Fixed error with kill functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazajhodo committed Jan 8, 2020
1 parent 1f4e594 commit 2bebd48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .updated
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# Placeholder to notify user settings have been updated.
updated=true
updated=false
7 changes: 4 additions & 3 deletions include/kill
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

# Kill programs opened by launcher.
# For quickly closing everything opened in order to open new project.
if [[ $kill = true ]]; then
if [[ $kill == true ]]; then
# Local domain suffix specified in .launcher.settings.
if [[ $suffix ]]; then
suffix=".$suffix"

# Close all browser tabs that contain local domain suffix.
osascript <<EOD
osascript >/dev/null 2>&1 <<EOD
set ideapp to "$ideapp"
set gitapp to "$gitapp"
Expand All @@ -17,7 +17,7 @@ osascript <<EOD
tell application gitapp to quit
end ignoring
tell application "$browser"
tell application "$browserapp"
try
set windowCount to number of windows
repeat with thiswindow from 1 to windowCount
Expand All @@ -31,6 +31,7 @@ osascript <<EOD
end repeat
end repeat
on error
display dialog error
end
end tell
EOD
Expand Down
2 changes: 1 addition & 1 deletion your.launcher.settings
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ suffix='ash'
# 'Firefox Developer Edition'
# 'Google Chrome'
# 'Safari'
browser='Brave Browser'
browserapp='Brave Browser'

# TERMINUS COMMAND
# There are going to be devs who have 'terminus' aliased to 't' or something.
Expand Down

0 comments on commit 2bebd48

Please sign in to comment.