What does pamac-system-daemon do?

Title is changed after more info


I try to open preferences and it never does.
This is just a part from journalctl -f -p4 (lots of similar...)

Ιουλ 03 01:14:10 kwin_x11[904]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 33650, resource id: 27535282, major code: 3 (GetWindowAttributes), minor code: 0
Ιουλ 03 01:14:12 kwin_x11[904]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 34658, resource id: 48234658, major code: 18 (ChangeProperty), minor code: 0
Ιουλ 03 01:14:14 gmenudbusmenuproxy[936]: kde.dbusmenuproxy: Got an empty menu for 0 on ":1.105" at "/org/appmenu/gtk/window/0"
Ιουλ 03 01:14:25 kwin_x11[904]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 39227, resource id: 27538288, major code: 3 (GetWindowAttributes), minor code: 0
Ιουλ 03 01:14:25 kwin_x11[904]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 39228, resource id: 27538288, major code: 14 (GetGeometry), minor code: 0

I don't know if it's related, but the button to "Mark as explicitly installed" is not working.
I click it and nothing happens, nor an "Apply/Commit" button appears.

LANG=en pacman -Qi pamac

Name            : pamac-gtk
Version         : 8.0.1-1
Description     : A Package Manager based on libalpm with AUR and Appstream support
Architecture    : x86_64
URL             : https://gitlab.manjaro.org/applications/pamac
Licenses        : GPL3
Groups          : None
Provides        : pamac=8.0.1-1  pamac=8.0.1-1  pamac-gtk=8.0.1
Depends On      : pamac-cli  vte3>=0.38  gtk3>=3.22
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : pamac  pamac-aur  pamac-gtk
Replaces        : pamac
Installed Size  : 598.00 KiB
Packager        : Helmut Stult <helmut@manjaro.org>
Build Date      : Sat Jun 29 20:11:41 2019
Install Date    : Sun Jun 30 11:28:27 2019
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature
~ >>> LANG=en pacman -Qi pamac                                                                                                                    
Name            : pamac-gtk
Version         : 8.0.1-1
Description     : A Package Manager based on libalpm with AUR and Appstream support
Architecture    : x86_64
URL             : https://gitlab.manjaro.org/applications/pamac
Licenses        : GPL3
Groups          : None
Provides        : pamac=8.0.1-1  pamac=8.0.1-1  pamac-gtk=8.0.1
Depends On      : pamac-cli  vte3>=0.38  gtk3>=3.22
Optional Deps   : None
Required By     : manjaro-application-utility  pamac-tray-appindicator
Optional For    : None
Conflicts With  : pamac  pamac-aur  pamac-gtk
Replaces        : pamac
Installed Size  : 598.00 KiB
Packager        : Helmut Stult <helmut@manjaro.org>
Build Date      : Sat Jun 29 19:11:41 2019
Install Date    : Sun Jun 30 11:00:20 2019
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : Signature

~ >>> journalctl -f -p4                                                                                                                        
-- Logs begin at Sun 2019-06-30 11:40:12 CEST. --
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32932, resource id: 148897799, major code: SendEvent), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 12 (BadColor), sequence: 32937, resource id: 148897798, major code: InstallColormap), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32938, resource id: 148897799, major code: ChangeProperty), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32976, resource id: 148897799, major code: QueryTree), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 32980, resource id: 148897799, major code: ChangeProperty), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 33109, resource id: 148897841, major code: ChangeProperty), minor code: 0
Jul 03 01:29:04 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 33119, resource id: 50332194, major code: 1hangeProperty), minor code: 0
Jul 03 01:29:06 kde kwin_x11[4909]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 34258, resource id: 50332197, major code: 1hangeProperty), minor code: 0
Jul 03 01:29:07 kde konsole[16691]: Icon theme "elementary" not found.
Jul 03 01:29:07 kde konsole[16691]: Icon theme "gnome" not found.

"Mark as explicitly installed" is there on unstable.

Preferences work to.

System:    Host: kde Kernel: 5.1.15-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.16.2 Distro: Manjaro Linux 

I found some reason:

Ιουλ 03 15:35:13 dbus-daemon[594]: [system] Activating via systemd: service name='org.manjaro.pamac.system' unit='pamac-system.service' requested by ':1.306' (uid=1002 pid=3957 comm="/usr/bin/pamac-manager ")
Ιουλ 03 15:35:13 dbus-daemon[594]: [system] Activation via systemd failed for unit 'pamac-system.service': Unit pamac-system.service is masked.
Ιουλ 03 15:35:13 systemd[1]: var-cache-pacman.automount: Got automount request for /var/cache/pacman, triggered by 3967 (pamac-manager)
Ιουλ 03 15:35:13 systemd[1]: Starting File System Check on /dev/disk/by-uuid/02153f2c-dd54-44d9-a735-8b342b690ea4...
Ιουλ 03 15:35:13 systemd-fsck[3968]: /dev/sdd3: clean, 2846/1921360 files, 2237306/7680000 blocks
Ιουλ 03 15:35:13 systemd[1]: Started File System Check on /dev/disk/by-uuid/02153f2c-dd54-44d9-a735-8b342b690ea4.
Ιουλ 03 15:35:13 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-fsck@dev-disk-by\x2duuid-02153f2c\x2ddd54\x2d44d9\x2da735\x2d8b342b690ea4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Ιουλ 03 15:35:13 kernel: audit: type=1130 audit(1562157313.523:56): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-fsck@dev-disk-by\x2duuid-02153f2c\x2ddd54\x2d44d9\x2da735\x2d8b342b690ea4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Ιουλ 03 15:35:13 systemd[1]: Mounting /var/cache/pacman...
Ιουλ 03 15:35:13 kernel: EXT4-fs (sdd3): mounted filesystem with ordered data mode. Opts: data=ordered
Ιουλ 03 15:35:13 systemd[1]: Mounted /var/cache/pacman.

It seems Preferences demands pamac-system.service which starts pamac-system-daemon.

[Unit]
Description=Pamac System Session

[Service]
Type=dbus
BusName=org.manjaro.pamac.system
ExecStart=/usr/bin/pamac-system-daemon

I had masked the service, in my attempt to explicitly control how my mirrorlist and update notification and update are executed/created.
So, the question is now:

Why does pamac needs its daemon to run in order to list and handle packages?
What does pamac-system-daemon do?

I tried to find info in pamac code (GitLab) and could not find any.

Any help from @guinux or others would be appreciated.

1 Like

Among other things, it predownloads updates in the background if configured to do so.

I am trying to use Preferences.
It wont open with daemon not started (service masked).
I wonder why this is needed.

Pamac GUI runs as user but you need root privileges to install/remove packages or write configuration files, so the GUI calls pamac-system-daemon which runs as root to do those actions.

In what way can I accomplish what I want?

  • Pamac does not change my mirrorlist
  • Pamac does not check for updates
  • Pamac does not inform me about anything
  • After a pamac upgrade, my settings are not reset to default (keep my Preferences settings as I set them)

Can I do that with setting Preferences only, so I can unmask pamac-system.service?


Update: I unmasked pamac-service and started. Everything (I reported as not working) works on pamac-gtk.
I enabled the service for now and see if it bothers my workflow in the future.

A confirmation on my questions in this post would be awesome :wink:

In preferences you can make pamac to not check for updates.
I'm order to not change the mirror list just mask pamac-mirrorlist.timer

1 Like

Thanks a lot!

I guess it was a (maybe)packaging issue with a pamac upgrade that made me use my axe.
Hopefully we will find a way to avoid those resets with package upgrades.

Keep up the good work @guinux !!

This topic was automatically closed after 90 days. New replies are no longer allowed.

Forum kindly sponsored by