Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions admin/osx/post_install.sh.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ elif [ ! -x "$(command -v pluginkit)" ]; then
else
echo "$LOG_PREFIX registering extension for user '$CONSOLE_USER' (uid $CONSOLE_UID)"

# Force remove any stale registration first (failure is expected on first install).
run_as_console_user pluginkit -r "$APPEX"; rc=$?
if [ "$rc" -eq 0 ]; then
echo "$LOG_PREFIX pluginkit -r succeeded for $APPEX"
else
echo "$LOG_PREFIX pluginkit -r returned $rc for $APPEX (expected if nothing was registered yet)"
fi

# Add it to the DB. This happens automatically too, but we push a bit harder (#3463).
run_as_console_user pluginkit -a "$APPEX"; rc=$?
if [ "$rc" -eq 0 ]; then
Expand Down
Loading