Skip to content

Commit

Permalink
Fix LMS restart using the new macOS menubar item
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Aug 31, 2024
1 parent 54bb1c5 commit 1e776e9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Bin/darwin/restart-server.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
#! /bin/sh
SCRIPTS="../platforms/osx/Preference Pane"
#!/bin/sh
# the menu bar item is expecting the scripts in the parent folder
SCRIPTS=".."

# the pref pane is expecting it next door
if [ ! -e "$SCRIPTS/stop-server.sh" ]; then
SCRIPTS="../Resources"
fi

# fallback for easy testing
if [ ! -e "$SCRIPTS/stop-server.sh" ]; then
SCRIPTS="../platforms/osx/Preference Pane"
fi

"$SCRIPTS/stop-server.sh"

# Wait for it to stop
Expand Down

0 comments on commit 1e776e9

Please sign in to comment.