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

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

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

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

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

log 复制代码
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 类型的日志。

log 复制代码
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
相关推荐
飘忽不定的bug13 分钟前
linux磁盘加密
linux·开源
herderl18 分钟前
【无标题】命名管道(Named Pipe)是一种在操作系统中用于**进程间通信(IPC)** 的机制
java·linux·服务器·嵌入式硬件·php
基于python的毕设26 分钟前
C语言宏相关操作
linux·c语言·ubuntu
研究是为了理解39 分钟前
Linux Shell:Nano 编辑器备忘
linux·运维·编辑器
千反田真的打不过我1 小时前
阿里云服务linux安装单机版
linux·阿里云·云计算
william_myq1 小时前
RK3568-RTL8852BS驱动框架
linux·wifi·rk3568·rtl8852bs
林鸿群1 小时前
Linux Shell为文件添加BOM并自动转换为unix格式
linux·运维·unix
人工智能训练师1 小时前
openEuler、 CentOS、Ubuntu等 Linux 系统中,Docker 常用命令总结
linux·ubuntu·centos
漫步企鹅2 小时前
【VS Code - Qt】如何基于Docker Linux配置Windows10下的VS Code,开发调试ARM 版的Qt应用程序?
linux·qt·docker·arm·vs code·开发调试
suwith2 小时前
nginx高新能web服务器
linux·服务器·nginx