/var/log/syslog
我在 Ubuntu 18.04 上,有时发现我无法再从桌面上的图标打开任何文件夹。尝试时出现以下错误:
$ cat /var/log/syslog | tail -3
Jan 16 17:59:51 drstoop-pc kernel: [ 657.870793] [UFW BLOCK] IN=wlp112s0 OUT= MAC=01:00:5e:00:00:01:c4:71:54:33:0a:b0:08:00 SRC=192.168.0.1 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2
Jan 16 18:00:33 drstoop-pc signal-desktop.desktop[4016]: {"name":"log","hostname":"drstoop-pc","pid":4016,"level":30,"msg":"Sending a keepalive message","time":"2019-01-16T16:00:33.885Z","v":0}
Jan 16 18:00:34 drstoop-pc nautilus-deskto[4026]: cannot open folder on desktop, freedesktop bus not ready
尽管如此,从 nautilus 窗口打开桌面文件夹还是可行的,在终止并重新启动 nautilus-desktop 后也是如此。重新启动仅在下次重启前有效:
$ killall nautilus-desktop
$ nautilus-desktop &
但我更希望修复错误,而不是解决问题...有什么想法吗?谢谢!
进一步的日志
终止、重新启动并从桌面图标打开文件夹会导致以下结果/var/log/syslog
:
Jan 16 18:09:48 drstoop-pc dbus-daemon[3099]: [session uid=1000 pid=3099] Activating service name='org.gnome.Nautilus' requested by ':1.21' (uid=1000 pid=3228 comm="/usr/bin/gnome-shell " label="unconfined")
Jan 16 18:09:48 drstoop-pc dbus-daemon[3099]: [session uid=1000 pid=3099] Successfully activated service 'org.gnome.Nautilus'
Jan 16 18:09:48 drstoop-pc dbus-daemon[1927]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.106' (uid=1000 pid=6160 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
Jan 16 18:09:48 drstoop-pc systemd[1]: Starting Hostname Service...
Jan 16 18:09:48 drstoop-pc dbus-daemon[1927]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 16 18:09:48 drstoop-pc systemd[1]: Started Hostname Service.
答案1
移除nautilus
表格Startup Applications
我无法解决这个问题,但我找到了触发器,‘禁用’了它并报告了漏洞:当 nautilus 设置为“启动启动”时,桌面上的文件夹无法打开Startup Applications
。一旦我从Startup
-app-list 中删除 nautilus 并重新启动,文件夹就会正常打开。这个错误是可重现的,我在 Ubuntu 18.04 和 18.10 上遇到过它。
至少现在可以绕过该错误,直到它被修复。