我最近安装了 Manjaro。大部分情况下运行良好,但当我尝试打开“首选项”页面时,GitKraken 不断崩溃。它会崩溃,然后重新打开,但首选项页面不会出现。
这是我从终端运行它时的输出:
(node:3255) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(node:3255) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
(electron) 'allowRendererProcessReuse' is deprecated and will be removed.
state: unavailable
state: checking
state: unavailable
App Window: WebContents 2 render process unexpectedly missing: crashed
MessagePort is terminating
MessagePort is terminating
MessagePort is terminating
MessagePort is terminating
MessagePort is terminating
Error occurred in handler for 'LOAD_ORGANIZATION_SUMMARIES': MessagePort is terminating
[PERFORMANCE] tried to end event with no start time: opening renderer window
state: checking
state: unavailable
有人对如何解决这个问题有什么建议吗?
答案1
这似乎是 snap 包特有的问题。当我删除现有的 gitkraken 配置并从 tarball 安装它时,它运行正常。
这意味着将来这个脚本应该解决问题:
rm -r ~/.gitkraken ~/.config/GitKraken
mkdir -p ~/apps/sources
cd ~/apps/sources
wget https://release.axocdn.com/linux/gitkraken-amd64.tar.gz
tar -xf gitkraken-amd64.tar.gz
mv gitkraken ~/apps
然后,添加一个类似于以下内容的桌面文件(其中{{ user_home }}
替换为您的主目录)。添加桌面文件可让您获得与 snap 包类似的功能:GitKraken 将可供 gnome 搜索。
[Desktop Entry]
X-SnapInstanceName=gitkraken
Name=GitKraken
Comment=Unleash your repo
GenericName=Git Client
Exec=env BAMF_DESKTOP_FILE_HINT={{ user_home }}/.local/share/applications/gitkraken_gitkraken.desktop {{ user_home }}/apps/gitkraken/gitkraken %U
Icon={{ user_home }}/apps/gitkraken/gitkraken.png
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Development;RevisionControl;
MimeType=text/plain;
StartupWMClass=gitkraken