#!/bin/bash # Удаляет Notion и MEGA (MEGAsync) из «Объекты входа». # Запустить в Terminal.app (не в Cursor): ./disable_login_items_notion_mega.sh # При первом запуске: Системные настройки → Конфиденциальность и безопасность → Доступ к управлению компьютером — включить для Terminal. osascript << 'APPLESCRIPT' tell application "System Events" set loginItems to get the name of every login item set toRemove to {"Notion", "MEGAsync", "MEGA"} repeat with appName in toRemove if loginItems contains appName then delete login item appName log "Removed from Login Items: " & appName end if end repeat end tell APPLESCRIPT echo "Done. Notion and MEGA removed from Login Items (if they were there)."