You are not logged in.

#1 2025-05-17 20:16:03

menteith
Member
Registered: 2022-01-18
Posts: 43

[SOLVED] Slower upgrade due to waiting for notification

Hi Guys,

I often upgrade my Arch from terminal, when I'm logged out from KDE. After upgrading I'm always getting the following message printed to console:

"Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached"

To my understanding, `pacman` wants to display notification on KDE, but it cannot be done. Not a big thing, but I need to wait 2 minutes or so to be able to use console since there is a timeout. Could it be turn off?
In other words, I do not want pacman to wait to display notification. How can I do that?

Thanks in advance!

Last edited by menteith (2025-05-26 19:51:20)


Long time Debian user who switched to Arch.

Offline

#2 2025-05-17 20:18:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,699

Re: [SOLVED] Slower upgrade due to waiting for notification

No, pacman does not do that. What command are you running, exactly? Post full, complete command and output.

Online

#3 2025-05-17 20:28:26

menteith
Member
Registered: 2022-01-18
Posts: 43

Re: [SOLVED] Slower upgrade due to waiting for notification

I use the following command:

LANG=C yay --answerdiff None --answerclean None --mflags --noconfirm

.

Here's some of the last lines of the above-mentioned command:

wYqW7vi.png


Long time Debian user who switched to Arch.

Offline

#4 2025-05-17 23:42:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,699

Re: [SOLVED] Slower upgrade due to waiting for notification

So this is a yay thing, not sure why you decided to blame pacman.

Please, don't post images of text, post the text itself.

Online

#5 2025-05-18 06:15:33

seth
Member
Registered: 2012-09-03
Posts: 64,035

Re: [SOLVED] Slower upgrade due to waiting for notification

From a superficial research (docs, bugs, google) this doesn't even seem to be a yay  thing…

type -a yay

Online

#6 2025-05-18 17:29:02

arh
Member
Registered: 2024-10-09
Posts: 30

Re: [SOLVED] Slower upgrade due to waiting for notification

this possibly looks like it could be a post-transaction pacman hook that triggers a notification after package upgrade so it could be worth to look into your pacman hook directory as well.

Offline

#7 2025-05-26 19:50:58

menteith
Member
Registered: 2022-01-18
Posts: 43

Re: [SOLVED] Slower upgrade due to waiting for notification

I've found the culprit! I had notification set up in zsh that informed when a long-running task had finished. After removing offending line, everything is working fine.


zplug "plugins/bgnotify",	from:oh-my-zsh

Long time Debian user who switched to Arch.

Offline

#8 2025-05-26 20:16:46

seth
Member
Registered: 2012-09-03
Posts: 64,035

Re: [SOLVED] Slower upgrade due to waiting for notification

from:oh-my-zsh

Quelle surprise…

Online

#9 2025-05-26 21:41:22

menteith
Member
Registered: 2022-01-18
Posts: 43

Re: [SOLVED] Slower upgrade due to waiting for notification

Quite surprising, indeed.


Long time Debian user who switched to Arch.

Offline

#10 2025-05-26 22:07:00

seth
Member
Registered: 2012-09-03
Posts: 64,035

Re: [SOLVED] Slower upgrade due to waiting for notification

Online

#11 2025-05-26 22:44:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,800
Website

Re: [SOLVED] Slower upgrade due to waiting for notification

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB