This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Use dbus to VisualNotifications

Tags: dbus, notify dbus, notify dbus, notify
(comma "," separated)
User avatar
smooky
Registered Member
Posts
6
Karma
0
OS

Use dbus to VisualNotifications

Wed Jan 20, 2010 2:26 pm
How could I use qdbus org.kde.VisualNotifications /VisualNotifications to display a notify window? In particular pass QVariantMap type parameters...

For example,
qdbus org.kde.VisualNotifications /VisualNotifications Notify "app_name" 0 0 "" "header" "text" "" ?? 5000

I've get error: Sorry, can't pass arg of type 'QVariantMap'

What I need specify instead "??" ?

Here one year ago were discussions about it viewtopic.php?f=66&t=23580&start=10#p75686 but using Python script, but I need from shell/commandline


FreeBSD 8.1, Kubuntu 10.10, KDE 4.5.5, KDE Russian Localization Team
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Use dbus to VisualNotifications

Thu Jan 21, 2010 10:13 pm
qdbus does not support QVariantMap I believe, so you need to use a coded application ( whether Python / C++ / etc ) to do it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
smooky
Registered Member
Posts
6
Karma
0
OS

Re: Use dbus to VisualNotifications

Sat Jan 23, 2010 7:32 pm
:-/ Yes! I think so too... Probably I will coded some workaround/wrappers application...

But I think may be exists something tools that will allow and support QVariantMap type patameters...

Thanks!


FreeBSD 8.1, Kubuntu 10.10, KDE 4.5.5, KDE Russian Localization Team
f1r3br4nd
Registered Member
Posts
16
Karma
0

Re: Use dbus to VisualNotifications

Thu Jun 17, 2010 4:07 am
It's pretty sad that Linux is turning away from the modular, text-based approach that made it great.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Use dbus to VisualNotifications

Thu Jun 17, 2010 5:02 am
In this case, it is simply a lack of an application which is able to send the appropriate types. This is due to the fact that console applications do not usually send KDE notifications.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar