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

相关推荐
namekong810 分钟前
ubuntu 通过下面几种方式查看系统 重启时间/开机时间:
linux·运维·ubuntu
Yyyy48229 分钟前
LVS、Nginx、HAProxy 的区别
运维·nginx·lvs
_dindong33 分钟前
Linux系统编程:线程概念
linux·运维·笔记·学习
zhujilisa39 分钟前
k8s基础
云原生·容器·kubernetes
夏天是冰红茶1 小时前
使用Docker将PyQt深度学习项目打包成镜像
运维·docker·容器
落日漫游2 小时前
InnoDB:MySQL高性能事务引擎详解
运维·sql
龙门吹雪2 小时前
Docker 安装 canal 详细步骤
运维·docker·容器·canal·mysql binlog 日志·增量数据订阅消费
椒盐螺丝钉2 小时前
TypeScript类型兼容性
运维·前端·typescript
老黄编程2 小时前
ubuntu如何查看一个内核模块被什么模块依赖(内核模块信息常用命令)?
linux·运维·ubuntu
Freed&3 小时前
Ansible 生产级自动化指南:Playbook、Handlers、Jinja2 全解析
运维·自动化·ansible