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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值