终端报错信息:
$ /opt/apps/com.baidu.translateclient/files/baidu-translate-client
(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
(node:28791) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
[28791:1002/160139.617860:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.
Failed to generate minidump.非法指令 (核心已转储)
解决方法:
在 /usr/share/applications/com.baidu.translateclient.desktop
文件中,修改 Exec
的那一行:
Exec=/opt/apps/com.baidu.translateclient/files/baidu-translate-client --no-sandbox
加入 --no-sandbox
即可。
修改 .desktop
后按 Alt + F2,在弹出的对话框中输入 r,然后按回车键,重新启动 gnome,即可生效。