當我嘗試開啟首選項時 GitKraken 崩潰

當我嘗試開啟首選項時 GitKraken 崩潰

我最近安裝了 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

相關內容