LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Opening "Application Launcher" from command line -- KDE 4.1 (http://www.linuxquestions.org/questions/linux-desktop-74/opening-application-launcher-from-command-line-kde-4-1-a-668161/)

andrems 09-07-2008 11:39 AM

Opening "Application Launcher" from command line -- KDE 4.1
 
Hello there, I'm using Arch Linux with KDE 4.1.1 and I'm trying to set up keyboard shortcuts outside KDE's broken shortcuts manager.
I'm using xbindkeys for things like volume up/down/mute, multimedia things and opening apps and wmctrl for toggling the desktop view on/off.

I wanted to set a shortcut to open the Application Launcher (that K menu) at the bottom left with no sucess.

In KDE 3.x, I found ppl using
Code:

dcop kicker kicker showKMenu
But when I try this, I get a "call failed", maybe because DCOP has been replaced by D-Bus in KDE 4.

Any suggestions? Maybe an dbus-send equivalent to that dcop command.


Thanks in advance! :)

andrems 09-08-2008 08:36 AM

From dbus-monitor I caught this while pressing Alt + F1 (which is the default shortcut for launching the application lanucher)

signal sender=:1.2 -> dest=(null destination) path=/KdedGlobalAccel; interface=org.kde.KdedGlobalAccel; member=invokeAction
array [
string "plasma"
string "Activate Application Launcher Widget"
string "Plasma Workspace"
string "Application Launcher"
]
int64 7471196
signal sender=:1.2 -> dest=(null destination) path=/modules/kdedglobalaccel; interface=org.kde.KdedGlobalAccel; member=invokeAction
array [
string "plasma"
string "Activate Application Launcher Widget"
string "Plasma Workspace"
string "Application Launcher"
]
int64 7471196


So I tried

# dbus-send --type=signal /KdedGlobalAccel org.kde.kded.KdedGlobalAccel.invokeAction array:string:"plasma","Activate Application Launcher Widget","Plasma Workspace","Application Launcher"

The dbus-monitor showed

signal sender=:1.251 -> dest=(null destination) path=/KdedGlobalAccel; interface=org.kde.kded.KdedGlobalAccel; member=invokeAction
array [
string "plasma"
string "Activate Application Launcher Widget"
string "Plasma Workspace"
string "Application Launcher"
]


But no App launcher popup... :(

What am I missing? Any ideas?

newtech2008 09-09-2008 03:49 AM

like volume up/down/mute
 
I'm using xbindkeys for things like volume up/down/mute, multimedia things and opening apps and wmctrl for toggling the desktop view on/off.

andrems 09-09-2008 05:56 AM

Not sure if you're answering me or just repeating like in your other posts...

Anyway, I fixed that by directly editing the plasma-appletsrc file at ~/.kde4/share/config


All times are GMT -5. The time now is 10:29 PM.