You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

cjp

Beginner

  • "cjp" started this thread

Posts: 3

Location: Dartmoor, UK

Occupation: Admin

  • Send private message

1

Wednesday, October 22nd 2008, 8:37pm

Add/Remove applet via command

Hi,

I was wondering if there was anyway to add and remove an applet from the kde panel via the command line? I ask as I use Compiz-Switch and would like to be able to script it to also switch the Pager applet between the standard kde pager and the compiz-pager.

I'm using Kde 3.5.10.

Thanks,

cjp
"Reality is merely a perception, sometimes you just have to look at things in a different way."

cjp

Beginner

  • "cjp" started this thread

Posts: 3

Location: Dartmoor, UK

Occupation: Admin

  • Send private message

2

Thursday, October 23rd 2008, 9:25pm

I worked it out...

In the end I work out I could use dcop for this purpose, i.e:

dcop kicker Panel insertApplet compizpagerapplet.desktop 6;

and....

dcop kicker Panel removeApplet 6

The program kdcop was very useful for creating these calls too!

:)

cjp
"Reality is merely a perception, sometimes you just have to look at things in a different way."

beermad

Beginner

Posts: 21

Location: Ipswich, England

Occupation: Semi-retired software engineer

  • Send private message

3

Friday, October 24th 2008, 11:37am

RE: I worked it out...

In the end I work out I could use dcop for this purpose, i.e:

dcop kicker Panel insertApplet compizpagerapplet.desktop 6;

and....

dcop kicker Panel removeApplet 6

The program kdcop was very useful for creating these calls too!

A word of warning. This won't work if/when you migrate to KDE4, as DCOP has been replaced in it. ;(

Similar threads