自学内容网 自学内容网

Ubuntu启动后第一次需要很久才能启动GTK应用问题

Ubuntu启动后第一次需要很久才能启动GTK应用问题

在这里插入图片描述

自从升级了 Ubuntu 之后,设备重启,发现打开 Terminal 、Nautilus 以及其他的GTK 应用都很慢,需要至少一分钟的时间启动。

刚开始也是拿着 journalctl 的异常日志去寻找答案,但是没有发现有效的解决办法。

于是自己通过使用 journalctl 找问题,发现应用的启动都会等待下面这个超时完之后才启动,这也不是 ERROR 或者 WARN 类型的日志。

10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: start operation timed out. Terminating.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: Failed with result 'timeout'.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: Failed to start xdg-desktop-portal.service - Portal service.

拿着上面的日志,通过 google 去查找,确实发现了原因和解决办法。

问题应该和 xdg-desktop-portal-gnome 这个软件包升级有关,但是具体升级了什么就不知道了,也不去深究了。

可以通过删除 xdg-desktop-portal-gnome 软件包 或者 安装 dbus-broker 软件包解决。

相关问题可以查看 https://github.com/flatpak/xdg-desktop-portal/issues/1024、https://github.com/linuxmint/cinnamon/issues/11857

自从升级了 Ubuntu 之后,设备重启,发现打开 Terminal 、Nautilus 以及其他的GTK 应用都很慢,需要至少一分钟的时间启动。

刚开始也是拿着 journalctl 的异常日志去寻找答案,但是没有发现有效的解决办法。

于是自己通过使用 journalctl 找问题,发现应用的启动都会等待下面这个超时完之后才启动,这也不是 ERROR 或者 WARN 类型的日志。

10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: start operation timed out. Terminating.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: xdg-desktop-portal.service: Failed with result 'timeout'.
10月 01 11:07:00 hhoa-Legion-Y7000-2019-PG0 systemd[3027]: Failed to start xdg-desktop-portal.service - Portal service.

拿着上面的日志,通过 google 去查找,确实发现了原因和解决办法。

问题应该和 xdg-desktop-portal-gnome 这个软件包升级有关,但是具体升级了什么就不知道了,也不去深究了。

可以通过删除 xdg-desktop-portal-gnome 软件包 或者 安装 dbus-broker 软件包解决。

参考:

  1. https://github.com/flatpak/xdg-desktop-portal/issues/1024
  2. https://github.com/linuxmint/cinnamon/issues/11857

原文地址:https://blog.csdn.net/HHoao/article/details/142669896

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!