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

kde 4 and dbus command to lauch k menu

Tags: None
(comma "," separated)
patrick.2
Registered Member
Posts
4
Karma
0
hi all,

when i using kde 3.5 i use : dcop kicker kicker popupKMenu 0,0
to lauch the k menu . now a looking the same command in kde4 ...
but now dcop not working and remplaced by dbus .
have some ideas ?
i looking with qdbusviewer but understand nothing :undecided:
thanks .
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS
patrick.2 wrote:hi all,

when i using kde 3.5 i use : dcop kicker kicker popupKMenu 0,0
to lauch the k menu . now a looking the same command in kde4 ...
but now dcop not working and remplaced by dbus .
have some ideas ?
i looking with qdbusviewer but understand nothing :undecided:
thanks .


I don't think it is possible:
Code: Select all
qdbus org.kde.plasma /kickoff
would probably be the right place, but doesn't list such a method. Maybe you can file a bug (wish) for it at bugs.kde.org?
patrick.2
Registered Member
Posts
4
Karma
0
Earthwings wrote:
patrick.2 wrote:hi all,

when i using kde 3.5 i use : dcop kicker kicker popupKMenu 0,0
to lauch the k menu . now a looking the same command in kde4 ...
but now dcop not working and remplaced by dbus .
have some ideas ?
i looking with qdbusviewer but understand nothing :undecided:
thanks .


I don't think it is possible:
Code: Select all
qdbus org.kde.plasma /kickoff
would probably be the right place, but doesn't list such a method. Maybe you can file a bug (wish) for it at bugs.kde.org?


thanks, i have a same answer on a french board, but if i try in console :

[patrick@localhost ~]$ qdbus org.kde.plasma /kickoff
Cannot introspect object /kickoff at org.kde.plasma:
org.freedesktop.DBus.Error.UnknownObject (No such object path '/kickoff')
[patrick@localhost ~]$ /usr/lib/qt4/bin/qdbusviewer

if i look that i don't found kickoff ....

it's possible you have right and it's a bug ....

thanks again .
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I run openSuSE 11.0 & i can confirm that qdbus org.kde.plasma /kickoff works for me. it produces the following:
signal void org.kde.kickoff.reloadMenu()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name,QString property_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QStringproperty_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
patrick.2
Registered Member
Posts
4
Karma
0
yes, but if i don't click one time on menu "k" i don't have this ...
before click menu "k" :

[patrick@localhost ~]$ qdbus org.kde.plasma
/
/App
/KBookmarkManager
/KBookmarkManager/kfilePlaces
/KDebug
/KIO
/KIO/Scheduler
/MainApplication
/VisualNotifications
[patrick@localhost ~]

after :

[patrick@localhost ~]$ qdbus org.kde.plasma
/
/App
/KBookmarkManager
/KBookmarkManager/kfilePlaces
/KDebug
/KIO
/KIO/Scheduler
/MainApplication
/VisualNotifications
/kickoff
/kickoff/RecentAppDoc
[patrick@localhost ~]$

before :
[patrick@localhost ~]$ qdbus org.kde.plasma /kickoff
Cannot introspect object /kickoff at org.kde.plasma:
org.freedesktop.DBus.Error.UnknownObject (No such object path '/kickoff')
[patrick@localhost ~]$

after :

[patrick@localhost ~]$ qdbus org.kde.plasma /kickoff
signal void org.kde.kickoff.reloadMenu()
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
[patrick@localhost ~]$
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Sounds like a bug, as kickoff is not full initialised until it is clicked once ( this could break scripts.. ). please check for one on bugs.kde.org, and file if it doesn't exist. Alternately, you could ask on the plasma mailing list ( plasma-devel@kde.org )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
patrick.2
Registered Member
Posts
4
Karma
0
ok, thanks for that .


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell