问题
在 qbittorrent
校验大文件时(大概100GB以上?),会出现无法启动新应用的情况。
KDE 还会在一段时间后,弹出下列通知
1Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
而且在终端中无法运行系统内核相关的程序,例如:journalctl
、systemdctl
等。无法通过 reboot
重启电脑,只能通过长按电源键硬重启电脑。
解决方案
手动
1sudo renice +10 -p $(pgrep qbittorrent)
再次校验大文件时,就不会出现上述问题。
自动
更改开机自启动 desktop
文件,在启动时就将 qbittorrent
优先级降低。
1$ ls ~/.config/autostart2$ vim org.qbittorrent.qBittorrent.desktop3将 Exec=qbittorrent %U 改为4Exec=sh -c "nice -n 10 qbittorrent %U"
更改通用启动 desktop
文件,在启动时就将 qbittorrent
优先级降低。
1$ vim ~/.local/share/applications/org.qbittorrent.qBittorrent.desktop2将 Exec=qbittorrent %U 改为3Exec=sh -c "nice -n 10 qbittorrent %U"
或者通过图形化界面找到 desktop
文件