GitKraken在Ubuntu 18.04上不再启动


18

昨天我打开Ubuntu 18.04并想启动GitKraken时,它没有用。单击其图标后,我看到该过程如何尝试从左上角开始(“活动”旁边),但是几秒钟后,该过程似乎消失了,没有任何反应。尝试从控制台启动GitKraken也会失败,并显示以下两条消息:

/snap/gitkraken/58/bin/desktop-launch: line 23: $HOME/.config/user-dirs.dirs: Permission denied
ln: failed to create symbolic link '$HOME/snap/gitkraken/58/.config/gtk-2.0/gtkfilechooser.ini': File exists

不幸的是,我的Linux技能太有限,无法解决此问题。我尝试过的唯一一件事是chmod 777 $HOME/.config/user-dirs.dirs因为,Permossion denied但是那没有帮助。

编辑:正如terdon在他的评论中所建议的那样ls -ld ~/.config/user-dirs.dirs,这是其输出:

-rwxrwxrwx 1 myusername myusername 633 Mai 6 10:30 /home/mayusername/.config/user-dirs.dirs

然后,我发出了mv ~/snap/gitkraken/58/.config/gtk-2.0/gtkfilechooser.ini gtkfilechooser.ini.bak命令,然后尝试启动GitKraken。我没有再开始显示:

/snap/gitkraken/58/bin/desktop-launch: line 23: /home/myusername/.config/user-dirs.dirs: Permission denied

ln: failed to create symbolic link ...我最初发布的错误没有出现。Exe ll在目录中的剪切~/snap/gitkraken/58/.config/gtk-2.0为我提供了以下输出:

drwxrwxr-x 2 myusername myusername 4096 Jun  3 16:44 ./
drwxrwxr-x 8 myusername myusername 4096 Mai 21 12:28 ../
lrwxrwxrwx 1 myusername myusername   47 Jun  3 15:45 gtkfilechooser.ini -> /home/myusername/.config/gtk-2.0/gtkfilechooser.ini
-rw-r--r-- 1 myusername myusername  198 Jun  3 16:44 gtkfilechooser.ini.bak

gtkfilechooser.ini -> /home/myusername/.config/gtk-2.0/gtkfilechooser.ini为红色,因为该文件不再存在。chmod之后执行命令并没有改变任何东西。GitKraken无法启动并输出相同的错误。


2
编辑您的问题,然后发布的输出ls -ld ~/.config/user-dirs.dirs。另外,尝试运行mv ~/snap/gitkraken/58/.config/gtk-2.0/gtkfilechooser.ini gtkfilechooser.ini.bak并再次启动。最后,告诉我们运行chmod命令是否有任何不同。
terdon

Answers:


40

解决:必须安装libgnome-keyring: sudo apt install libgnome-keyring0

用户界面现在出现,并为我工作。仍然收到以下警告,但它正在运行:

Gtk-Message: 11:19:31.343: Failed to load module "overlay-scrollbar"
Gtk-Message: 11:19:31.349: Failed to load module "canberra-gtk-module"
Node started time: 1528391971495
state:  update-not-available
EVENT: Main process loaded at 441 ms
state:  checking-for-update
state:  update-not-available
state:  checking-for-update
state:  update-not-available
EVENT: Starting initial render of foreground window at 5331 ms
EVENT: Startup triggers started at 5446 ms

2
是的 sudo apt install libgnome-keyring0太Linux Mint的19为我工作
f0nzie
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.