Portál AbcLinuxu, 6. května 2025 16:35

Dotaz: D-Bus - Volání Notify funkce

skunkOS avatar 27.7.2015 12:19 skunkOS | skóre: 27 | blog: Tak nějak
D-Bus - Volání Notify funkce
Přečteno: 161×
Odpovědět | Admin
dbus-send --session --print-reply --dest=org.freedesktop.Notifications --type=method_call --reply-timeout=10000 /org/freedesktop/Notifications org.freedesktop.Notifications.Notify string:'Test Application' uint32:0 string: string:'NOTIFICATION TEST' string:'This is a test of the notification system via DBus.' array:string: dict:string:string: int32:10000

Odpověď je Error org.freedesktop.DBus.Error.InvalidArgs: Type of message, '(susssasa{ss}i)', does not match expected type '(susssasa{sv}i)'

Chápu to tak, že někde v předposledním parametru je problém. Ale jsem z toho tumpachovej...
http://martinrotter.github.io
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

27.7.2015 13:45 NN
Rozbalit Rozbalit vše Re: D-Bus - Volání Notify funkce
Odpovědět | | Sbalit | Link | Blokovat | Admin
Kdyby jsi se laskave podival co ten error znamena, tak by jsi ses dozvedel, ze uz se nepouziva dict:string:string, ale dict:string:variant.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.