mac 登录项里的允许在后台如何删除? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
justincnn
V2EX    macOS

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

  •  4
     
  •   justincnn 2023-07-10 19:43:12 +08:00 9366 次点击
    这是一个创建于 906 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    11 条回复    2023-07-14 10:40:55 +08:00
    windorz
        1
    windorz  
       2023-07-10 20:13:57 +08:00
    打开 Finder, Command + Shift + G, 前往 /Library/LaunchDaemons, 自己看 plist 文件的 id, 找对应的删除就行了. 删除重启电脑.
    di11wei
        2
    di11wei  
       2023-07-10 20:29:47 +08:00
    ~/Library/LaunchAgents
    /System/Library/LaunchAgents/
    /System/Library/LaunchDaemons/
    /Library/LaunchAgents/
    /Library/LaunchDaemons/
    Abmcar
        3
    Abmcar  
       2023-07-11 00:06:45 +08:00   2
    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



    列出来搜名字一个一个删吧,这东西确实傻逼,目前来看也没有找到什么好的管理方法
    czhh
        4
    czhh  
       2023-07-11 08:19:10 +08:00   1
    v 友是我肚里的蛔虫啊 昨天还在想这个问题 今天有答案了
    PierreGasly
        5
    PierreGasly  
       2023-07-11 10:34:55 +08:00 via iPhone
    删 app 的时候可以用 app cleaner ,这样是否会删得干净些?
    xx572959496
        6
    xx572959496  
       2023-07-11 16:50:08 +08:00
    之前安装 office 和 edge 的时候 就有这个问题,终于有人提出来了
    justincnn
        7
    justincnn  
    OP
       2023-07-11 20:05:36 +08:00
    @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
        8
    BlackkCCCat  
       2023-07-11 21:13:56 +08:00
    @PierreGasly app cleaner 似乎也不行,不过用 clean my Mac 倒是有用
    baozreal
        9
    baozreal  
       2023-07-11 23:01:11 +08:00
    软件 App Cleaner&Uninstaller 里,启动程序一栏可以找到移除
    ihwbunny
        10
    ihwbunny  
       2023-07-14 10:15:15 +08:00
    这个命令来自 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
        11
    ihwbunny  
       2023-07-14 10:40:55 +08:00
    @justincnn
    有错误提示正常,主要是看~/Desktop/launch.txt 文件的内容,
    参考苹果社区的帖子,比如: https://discussionschinese.apple.com/thread/254814786?cid=em-com-apple_email_question_correctanswer_258973471322_zh-cn&answerId=258973471322#258973471322
    关于     帮助文档     自助推广系统     博客 &nsp;   API     FAQ     Solana     2444 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 22ms UTC 08:34 PVG 16:34 LAX 00:34 JFK 03:34
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86