confusing dcop actions?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am trying to write a small script to active krusader window when
minimized to kicker, but I am totally confused by different DCOP actions
available. When I run 'dcop $KRUSADERID krusader-mainwindow#1' I got among
others (there are 132 lines in the output!) actions like raise, restore,
raise (or for example setEnabled, pos, setBackgroundMode, isActiveWindow,
focusEnabled, ...). Is there any documentation on which does which? Which
of these I should use when I want to get krusader activated and to be on
the top of all other windows in the active desktop? The current draft of
the script is here (does anybody have any tips on its streamlineing
anyway?):
#!/bin/sh
SLEEPTIME=5
if !(KRUSADERID=$(dcopfind -a krusader\*)); then
/usr/bin/krusader "$@" &
until (KRUSADERID=$(dcopfind -a krusader\*)); do
sleep $SLEEPTIME
done
fi
dcop $KRUSADERID krusader-mainwindow#1 setGeometry 18 39 718 511
dcop $KRUSADERID krusader-mainwindow#1 show
dcop $KRUSADERID krusader-mainwindow#1 restore
dcop $KRUSADERID krusader-mainwindow#1 raise
Thanks for any reply,
Matej
- --
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
See, when the GOVERNMENT spends money, it creates jobs; whereas
when the money is left in the hands of TAXPAYERS, God only knows
what they do with it. Bake it into pies, probably. Anything to
avoid creating jobs.
-- Dave Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFBJ8GA4J/vJdlkhKwRAkJpAJ9BJ9ODGZHFvWRsgPfRzyPJ+I240gCdGtu8
gLdGclQpAcsqzRyHICRPOy0=
=dHgg
-----END PGP SIGNATURE-----
Reply to: