mac安装浏览器闪退处理

安装 Chrome或edge后打开浏览器出现闪退,是因为权限不够。

以下是针对edge的处理方法。

复制代码
sudo chown -R $(whoami) ~/Library/Application\ Support/Microsoft\ Edge
sudo chmod -R 755 ~/Library/Application\ Support/Microsoft\ Edge

原因分析:

在终端中直接命令行启动查看错误问题

bash 复制代码
$% ./Applications/Microsoft Edge.app/Contents/MacOS/Microsoft\ Edge

msedge_crashpad_handler: --database is required
Try 'msedge_crashpad_handler --help' for more information.
[0406/224330.119164:ERROR:crash_report_database_mac.mm(111)] mkdir : No such file or directory (2)
[59008:17101653:0406/224330.159629:ERROR:process_singleton_posix.cc(346)] Failed to create /Users/***/Library/Application Support/Microsoft Edge/SingletonLock: Permission denied (13)
[59008:17101653:0406/224330.159671:ERROR:process_singleton_posix.cc(486)] Could not open singleton lock: Permission denied (13)
[59008:17101653:0406/224330.159696:ERROR:chrome_main_delegate.cc(676)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption.

加上sudo就可以正常启动。因此判断还是权限问题。赋予权限即可

相关推荐
牛奶咖啡13几秒前
Linux系统的常用操作命令——文件远程传输、文件编辑、软件安装的四种方式
运维·服务器·软件安装·linux云计算·scp文件远程传输·vi文件编辑·设置yum的阿里云源
难受啊马飞2.06 分钟前
如何判断 AI 将优先自动化哪些任务?
运维·人工智能·ai·语言模型·程序员·大模型·大模型学习
会又不会13 分钟前
Jenkins-Email Extension 插件插件
运维·jenkins
电脑能手1 小时前
[保姆级教程] 解决不同局域网电脑无法SSH的问题
运维·ssh·电脑
czhc11400756631 小时前
Linux 76 rsync
linux·运维·python
你不知道我是谁?3 小时前
负载均衡--四层、七层负载均衡的区别
运维·服务器·负载均衡
dyj0953 小时前
【Rancher Server + Kubernets】- Nginx-ingress日志持久化至宿主机
运维·nginx·rancher
码出钞能力4 小时前
linux内核模块的查看
linux·运维·服务器
星辰云-5 小时前
# Linux Centos系统硬盘分区扩容
linux·运维·centos·磁盘扩容
Hellc0075 小时前
Nginx 高级 CC 与 DDoS 防御策略指南
运维·nginx·ddos