Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]DBUS - Signal wenn ein neuer Service verfügbar wird?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
XMath
Guru
Guru


Joined: 14 Aug 2004
Posts: 435
Location: Germany, Gaimersheim

PostPosted: Wed Aug 04, 2010 4:40 pm    Post subject: [solved]DBUS - Signal wenn ein neuer Service verfügbar wird? Reply with quote

Hi,
ich suche nach einer Möglichkeit bzw. nach einem Signal, das mir mitteilt, dass sich ein neuer Service angemeldet hat.

Hintergrund:
Das Plasmoid playwolf funktioniert seit Update auf QT4.5 oder QT4.6 nicht mehr. Ich konnte das Ganze insoweit eingrenzen, als das das Plasmoid vor amarok gestartet wird. Dies hat zur Folge das die Notifizierungen auf den Dienst org.kde.amarok ins Leere laufen.

Ich möchte nun also eine zusätzliche Notifizierung einbauen, um mitzubekommen wenn amarok sich bei DBUS anmeldet.
Anschließend kann dann playwolf wieder wie gewohnt arbeiten.

Wer hat eine Idee welches Signal man dafür "missbrauchen" kann?

VG
Matthias


Last edited by XMath on Sat Aug 07, 2010 9:07 am; edited 1 time in total
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Wed Aug 04, 2010 5:49 pm    Post subject: Reply with quote

So wie ich die ganze Signal-Geschichte verstanden habe, solltest du eher Amarok playwolf mitteilen, dass Amarok gestartet ist.
Das könntest du zum Beispiel mit einem Wrapper machen, der erst Amarok startet und dann ein Signal an playwolf schickt.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5182

PostPosted: Wed Aug 04, 2010 5:52 pm    Post subject: Reply with quote

schau dir mal das now playing plasmoid an. Bei mir läuft es, bevor amarok gestartet wird. Und wenn amarok läuft, zeigt dieses plasmoid auch das aktuell laufende musikstück.

oder aktualisiere das plasmoid auf version 0.8 denn da wurde anscheinend der bug gefixt:
http://kde-look.org/content/show.php/PlayWolf?content=93882
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
XMath
Guru
Guru


Joined: 14 Aug 2004
Posts: 435
Location: Germany, Gaimersheim

PostPosted: Wed Aug 04, 2010 7:40 pm    Post subject: Reply with quote

Hi,
Danke für eure Hinweise.
Nachdem mir endlich ein passender Suchbegriff für Google eingefallen ist, bin ich auf folgender Seite gelandet:
Wait for service on DBUS

Nach etwas Bastelarbeit klappt es sogar :).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum