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就可以正常启动。因此判断还是权限问题。赋予权限即可

相关推荐
在角落发呆8 小时前
工具配置备份步骤:从手动备份到自动化方案
运维·windows·自动化
百度一下吧9 小时前
Nginx 使用手册:从安装配置到实战部署
运维·nginx
JeJe同学10 小时前
Docker镜像导入、容器启动
linux·运维·docker
回眸&啤酒鸭10 小时前
【回眸】自动化白盒测试落地实战指南
运维·自动化·log4j
闲云野鹤在人间11 小时前
MySQL|从理论、安装、备份到主从复制、MHA高可用详解
linux·运维·数据库·mysql·云计算
资料库0112 小时前
Linux 8个常见运维故障排查
java·linux·运维
机核研创社13 小时前
睡裤明橡筋自动化选型指南与落地四步走
运维·自动化
志栋智能13 小时前
超自动化运维,告别复杂系统的新范式
运维·自动化
零基础12313 小时前
Ubuntu 常用命令汇总
linux·运维·开发语言
Android系统攻城狮13 小时前
Linux Gstreamer深度解析之gst_audio_sink_get_type调用流程与实战(六十五)
linux·运维·服务器·音视频·gstreamer音视频·音视频进阶·gstreamer音视频进阶