g-dbus error when initializing mkchromecast tray  [Solved]

For issues with MX that has been modified from the initial install. Example: adding packages that then cause issues.
Message
Author
User avatar
legacyland
Posts: 4
Joined: Sat Nov 20, 2021 3:56 pm

g-dbus error when initializing mkchromecast tray

#1 Post by legacyland »

Hi, thanks for reading.
I'm running mx23.3 on a imac with openbox lightdm lxpolkit sysvinit tint2. I was able to get apps like gkparted and timeshift to work after installing the polkit.

Now I'm running into a problem with an app called mkchromecast. It fails to add itself to the system tray with the following traceback:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/mkchromecast", line 311, in <module>
    mk()
  File "/usr/bin/mkchromecast", line 65, in __init__
    self.start_tray()
  File "/usr/bin/mkchromecast", line 307, in start_tray
    mkchromecast.systray.main()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 875, in main
    menubar()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 157, in __init__
    self.createUI()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 182, in createUI
    self.search_cast()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 339, in search_cast
    self.set_icon_working()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 264, in set_icon_working
    self.search_notification()
  File "/usr/lib/python3/dist-packages/mkchromecast/systray.py", line 866, in search_notification
    found.show()
gi.repository.GLib.GError: g-dbus-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Process org.freedesktop.Notifications exited with status 1 (25)
I can boot into xcfe and the app will launch into the tray, any ideas what openbox would be missing? Something related to systemd shimming?

Any help appreciated.
Tim

Code: Select all

System:
  Kernel: 6.1.0-25-amd64 [6.1.106-3] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-25-amd64 root=UUID=<filter> ro nouveau.noaccel=1
    quiet splash
  Desktop: Openbox v: 3.6.1 info: tint2 vt: 7 dm: LightDM v: 1.26.0 Distro: MX-23.3_x64 Libretto
    July 31 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: Apple product: iMac6,1 v: 1.0 serial: <superuser required> Chassis:
    type: 13 v: Mac-F4218FC8 serial: <superuser required>
  Mobo: Apple model: Mac-F4218FC8 v: DVT serial: <superuser required> UEFI: Apple
    v: IM61.88Z.0093.B07.0706281250 date: 06/28/07
CPU:
  Info: model: Intel Core2 T7400 bits: 64 type: MCP arch: Core2 Merom level: v1 built: 2006-09
    process: Intel 65nm family: 6 model-id: 0xF (15) stepping: 6 microcode: 0xD1
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB
    L2: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 2161 min/max: 1000/2167 scaling: driver: acpi-cpufreq governor: ondemand
    cores: 1: 2161 2: 2161 bogomips: 8645
  Flags: ht lm nx pae sse sse2 sse3 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines; STIBP: disabled; RSB filling; PBRSB-eIBRS: Not
    affected; BHI: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA G73 [GeForce 7300 GT] driver: nouveau v: kernel non-free: series: 304.xx
    status: legacy (EOL) last: release: 304.137 kernel: 4.13 xorg: 1.19 arch: Curie process: 90-130nm
    built: 2003-13 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: LVDS-1
    empty: DVI-I-1,TV-1,VGA-1 bus-ID: 01:00.0 chip-ID: 10de:0395 class-ID: 0300 temp: 65.0 C
  Device-2: Apple Built-in iSight [Micron] type: USB driver: uvcvideo bus-ID: 5-4:7
    chip-ID: 05ac:8501 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: nouveau
    unloaded: fbdev,modesetting,vesa alternate: nv dri: swrast gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48") s-diag: 599mm (23.57")
  Monitor-1: LVDS-1 model: Apple Color LCD serial: <filter> built: 2006 res: 1920x1200 hz: 60
    dpi: 104 gamma: 1.2 size: 470x300mm (18.5x11.81") diag: 611mm (24") ratio: 16:10, 15:9 modes:
    max: 1920x1200 min: 640x350
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: llvmpipe (LLVM 15.0.6 128 bits) direct-render: Yes
Audio:
  Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Realtek driver: snd_hda_intel
    v: kernel bus-ID: 00:1b.0 chip-ID: 8086:27d8 class-ID: 0403
  API: ALSA v: k6.1.0-25-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: JACK v: 1.9.21 status: off tools: jack_control,qjackctl
  Server-2: PipeWire v: 1.0.0 status: off with: 1: pipewire-pulse status: off 2: wireplumber
    status: off tools: pw-cat,pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active tools: pacat,pactl,pavucontrol
Network:
  Device-1: Marvell 88E8053 PCI-E Gigabit Ethernet driver: sky2 v: 1.30 pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: 1000 bus-ID: 02:00.0 chip-ID: 11ab:4362 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Broadcom BCM4321 802.11a/b/g/n vendor: Apple AirPort Extreme driver: b43-pci-bridge
    v: N/A modules: ssb,wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:4328
    class-ID: 0280
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A
  IF-ID-2: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Apple Bluetooth HCI type: USB driver: btusb v: 0.8 bus-ID: 4-1:4 chip-ID: 05ac:8206
    class-ID: fe01
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 1.2 lmp-v: 2.0
    sub-v: 7ad hci-v: 2.0 rev: 7ad
  Info: acl-mtu: 384:8 sco-mtu: 64:8 link-policy: rswitch hold sniff park
    link-mode: peripheral accept
Drives:
  Local Storage: total: 232.89 GiB used: 132.56 GiB (56.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3250824AS Q size: 232.89 GiB block-size:
    physical: 512 B logical: 512 B speed: 1.5 Gb/s type: N/A serial: <filter> rev: H scheme: GPT
Partition:
  ID-1: / raw-size: 47.88 GiB size: 46.83 GiB (97.80%) used: 13.79 GiB (29.5%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 305 MiB size: 304.4 MiB (99.79%) used: 328 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 180.32 GiB size: 176.43 GiB (97.84%) used: 118.77 GiB (67.3%) fs: ext4
    dev: /dev/sda4 maj-min: 8:4
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 4.37 GiB used: 3 MiB (0.1%) priority: -2 dev: /dev/sda3
    maj-min: 8:3
Sensors:
  System Temperatures: cpu: 69.0 C mobo: N/A gpu: nouveau temp: 65.0 C
  Fan Speeds (RPM): cpu: 1338
Repos:
  Packages: 2937 pm: dpkg pkgs: 2930 libs: 1520 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 7
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  No active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas-2.list
  No active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas.list
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://la.mxrepo.com/mx/repo/ bookworm main non-free
Info:
  Processes: 199 Uptime: 1h 2m wakeups: 1 Memory: 2.9 GiB used: 1.65 GiB (57.0%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

User avatar
fehlix
Developer
Posts: 12833
Joined: Wed Apr 11, 2018 5:09 pm

Re: g-dbus error when initializing mkchromecast tray  [Solved]

#2 Post by fehlix »

legacyland wrote: Thu Sep 12, 2024 12:54 pm Now I'm running into a problem with an app called mkchromecast. It fails to add itself to the system tray with the following traceback:

Code: Select all

gi.repository.GLib.GError: g-dbus-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Process org.freedesktop.Notifications exited with status 1 (25)
The error message indicates you may have missed to start a notification-daemon.
The auto-start entry for Xfce, would check whether it is running, and start if needed.
But I guess for openbox you may need to add your own autostart entry
with something like this

Code: Select all

/usr/lib/x86_64-linux-gnu/xfce4/notifyd/xfce4-notifyd
if you want to use the one which comes with xfce.

User avatar
legacyland
Posts: 4
Joined: Sat Nov 20, 2021 3:56 pm

Re: g-dbus error when initializing mkchromecast tray

#3 Post by legacyland »

Thanks for that, since that was already installed it was easy to add to the openbox autostart. Reviewing the syslog I found other processes were getting the same error, but without coming to my attention.

I'm curious about other processes that were succeeding in adding tray notifications, mxupdater for example. Does that use a different notification mechanism?

Post Reply

Return to “MX Modified”