On Jan 7, 2004, at 9:00 AM, Dan Anderson wrote:


I was curious if anyone knows a good resource on integrating Perl
scripts into KDE (and I suppose gnome).  I want to start doing things
like adding my scripts to my taskbar, and was curious if that was
possible without compiling C extensions.

ok, I'm slow and it has been some time since I did KDE/gnome - but if the code is executable, then it is merely a matter of Identifying the 'name' of the code just as one would do with any other piece of code.

If you have command line code that needs to run
in a shell, and you were not planning on wrapping
it in say Perl/Tk or some other window GUI form
then how about the old dog trick of
##!/bin/sh
###
###if [ "${DISPLAY}" = "" ]
###then
###     /usr/ucb/echo -n "what display? "
###     read DISPLAY
###     export DISPLAY
###fi
###
###nohup xterm -geometry 80x60+0+0 -e goWork >/dev/null 2>&1 &
###
###exit
###
vladimir: 58:]

this will invoke the 'goWork' code in an xterm...

HTH....

ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to