justincnn
V2EX  ›  macOS

mac 登录项里的允许在后台如何删除?

  •  4
     
  •   justincnn · Jul 10, 2023 · 11200 views
    This topic created in 1228 days ago, the information mentioned may be changed or developed.

    好多的 app 都已经删除了,但是这里还有残留,

    请问下,这里的东西如何删除?

    11 replies  •  2023-07-14 10:40:55 +08:00
    windorz
    windorz
    Jul 10, 2023
    1
    打开 Finder, Command + Shift + G, 前往 /Library/LaunchDaemons, 自己看 plist 文件的 id, 找对应的删除就行了. 删除重启电脑.
    di11wei
    di11wei
    Jul 10, 2023
    2
    ~/Library/LaunchAgents
    /System/Library/LaunchAgents/
    /System/Library/LaunchDaemons/
    /Library/LaunchAgents/
    /Library/LaunchDaemons/
    Abmcar
    Abmcar
    Jul 11, 2023❤️2
    3
    sudo -- bash -c 'echo " - $(date) -"; while IFS= read -r eachPlist; do echo "-$eachPlist"; /usr/bin/defaults read "$eachPlist"; done <<< "$(/usr/bin/find /Library/LaunchDaemons /Library/LaunchAgents ~/Library/LaunchAgents /private/var/root/Library/LaunchAgents /private/var/root/Library/LaunchDaemons -name "*.plist")"; /usr/bin/defaults read com.apple.loginWindow LogoutHook; /usr/bin/defaults read com.apple.loginWindow LoginHook' > ~/Desktop/launch.txt



    列出来搜名字一个一个删吧,这东西确实傻逼,目前来看也没有找到什么好的管理方法
    javaDo
    javaDo
    Jul 11, 2023❤️1
    4
    v 友是我肚里的蛔虫啊 昨天还在想这个问题 今天有答案了
    PierreGasly
    PierreGasly
    Jul 11, 2023 via iPhone
    5
    删 app 的时候可以用 app cleaner ,这样是否会删得干净些?
    xx572959496
    xx572959496
    Jul 11, 2023
    6
    之前安装 office 和 edge 的时候 就有这个问题,终于有人提出来了
    justincnn
    justincnn
    OP
    Jul 11, 2023
    7
    @Abmcar 你好,提示如下错误:

    justin@Justin-MacBook source % sudo -- bash -c 'echo " - $(date) -"; while IFS= read -r eachPlist; do echo "-$eachPlist"; /usr/bin/defaults read "$eachPlist"; done <<< "$(/usr/bin/find /Library/LaunchDaemons /Library/LaunchAgents ~/Library/LaunchAgents /private/var/root/Library/LaunchAgents /private/var/root/Library/LaunchDaemons -name "*.plist")"; /usr/bin/defaults read com.apple.loginWindow LogoutHook; /usr/bin/defaults read com.apple.loginWindow LoginHook' > ~/Desktop/launch.txt
    Password:
    find: /private/var/root/Library/LaunchAgents: No such file or directory
    find: /private/var/root/Library/LaunchDaemons: No such file or directory
    2023-07-11 20:05:05.838 defaults[16923:211846]
    The domain/default pair of (com.apple.loginWindow, LogoutHook) does not exist
    2023-07-11 20:05:05.845 defaults[16924:211849]
    The domain/default pair of (com.apple.loginWindow, LoginHook) does not exist
    BlackkCCCat
    BlackkCCCat
    Jul 11, 2023
    8
    @PierreGasly app cleaner 似乎也不行,不过用 clean my Mac 倒是有用
    baozreal
    baozreal
    Jul 11, 2023
    9
    软件 App Cleaner&Uninstaller 里,启动程序一栏可以找到移除
    ihwbunny
    ihwbunny
    Jul 14, 2023
    10
    这个命令来自 b 站视频:macOS Ventura - 深入了解登录项 (3)
    另外还可以用另外一个系统命令,参考 b 站:macOS Ventura - 深入了解登录项(5)
    还有参考苹果社区的帖子,比如: https://discussionschinese.apple.com/thread/254814786?cid=em-com-apple_email_question_correctanswer_258973471322_zh-cn&answerId=258973471322#258973471322
    ihwbunny
    ihwbunny
    Jul 14, 2023
    11
    @justincnn
    有错误提示正常,主要是看~/Desktop/launch.txt 文件的内容,
    参考苹果社区的帖子,比如: https://discussionschinese.apple.com/thread/254814786?cid=em-com-apple_email_question_correctanswer_258973471322_zh-cn&answerId=258973471322#258973471322
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2603 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 11:46 · PVG 19:46 · LAX 03:46 · JFK 06:46
    ♥ Do have faith in what you're doing.