Notify-osd in KDE-Plasma verwenden

Sound, Digitalkameras, TV+Video und Spiele.
Antworten
geier22

Notify-osd in KDE-Plasma verwenden

Beitrag von geier22 » 26.03.2017 15:07:38

Ich hab mal wieder ein Problem mit KDE.
In allen GTK- Oberflächen funktioniert folgendes Verfahren:
Mein Musik Programm JRiver Mediacenter 22 spielt einen Song. Dieser wird von einem Skript abgegriffen und via notify-send zum Daemon übertragen, der dann eine eine entsprechende Nachricht auf dem Monitor erscheinen lässt (ich hoffe, das richtig verstanden zu haben :roll: ).
Das Skript:

Code: Alles auswählen

#!/bin/bash

mkdir -p ~/.MC_Notifier
touch ~/.MC_Notifier/Filekey.Current

while true; do
	wget -q localhost\:52199/MCWS/v1/Playback/Info\?Zone\=\-1 -O ~/.MC_Notifier/Info
	mv ~/.MC_Notifier/Filekey.Current ~/.MC_Notifier/Filekey.Old
	sed -n 's:.*<Item Name="FileKey">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info > ~/.MC_Notifier/Filekey.Current
	diff ~/.MC_Notifier/Filekey.Current ~/.MC_Notifier/Filekey.Old > /dev/null
	if [[ $? -ne 0 ]]; then
	        sed -- 's/\&/\&/g' ~/.MC_Notifier/Info > ~/.MC_Notifier/Info2
  		mv ~/.MC_Notifier/Info2 ~/.MC_Notifier/Info
		ALBUM=$(sed -n 's:.*<Item Name="Album">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
		ARTIST=$(sed -n 's:.*<Item Name="Artist">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
		TRACK=$(sed -n 's:.*<Item Name="Name">\(.*\)</Item>.*:\1:p' ~/.MC_Notifier/Info)
		notify-send -i "/home/hans/Bilder/Icons/Diverse_Ikons/MC19.png" -t 200000 "$ALBUM" "$ARTIST - $TRACK" 

	fi
	sleep 2
done


installiert habe ich in KDE (Stretch) folgendes:

Code: Alles auswählen

dpkg -l *notify* |grep ii
ii  gir1.2-notify-0.7:amd64   0.7.7-1+b1                 amd64        sends desktop notifications to a notification daemon (Introspection files)
ii  libdesktop-notify-perl    0.03-1                     all          Perl module which communicates with the Desktop Notifications framework
ii  libgtk2-notify-perl       0.05-4+b3                  amd64        Perl interface to libnotify
ii  libkf5notifyconfig-data   5.28.0-1                   all          Configuration system for KNotify.
ii  libkf5notifyconfig-dev    5.28.0-1                   amd64        development files for knotifyconfig
ii  libkf5notifyconfig5:amd64 5.28.0-1                   amd64        Configuration system for KNotify.
ii  libknotifyconfig4         4:4.14.26-1                amd64        library for configuring KDE Notifications
ii  libnotify4:amd64          0.7.7-1+b1                 amd64        sends desktop notifications to a notification daemon
ii  notify-osd                0.9.35+15.04.20150126-1+b1 amd64        daemon that displays passive pop-up notifications
ii  python-notify             0.1.1-4                    amd64        Python bindings for libnotify
ii  python3-notify2           0.3-3                      all          desktop notifications API for Python 3
ii  vlc-plugin-notify:amd64   1:2.2.4-dmo15              amd64        LibNotify plugin for VLC
notify-osd startet aber in KDE nicht. Startversuch auf der Konsole gibt folgende Fehlermeldungen:

Code: Alles auswählen

# /usr/lib/x86_64-linux-gnu/notify-osd

(notify-osd:30958): Gtk-WARNING **: Theme parsing error: gtk.css:491:14: not a number

(notify-osd:30958): Gtk-WARNING **: Theme parsing error: gtk.css:491:14: Expected a string.

(notify-osd:30958): Gtk-WARNING **: Theme parsing error: gtk.css:494:17: Expected a string.
......
......
** (notify-osd:30958): WARNING **: dbus_create_service_instance(): Got error "Did 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."

** (notify-osd:30958): WARNING **: Could not register instance
Mit den Fehlermeldungen kann ich nichts anfangen.

Gibt es einen Weg, notify-osd in KDE zu aktivieren?

Antworten