Subject:
|
Re: Custom launchers in Gnome panels?
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Thu, 2 Mar 2000 06:15:21 GMT
|
Viewed:
|
2765 times
|
| |
| |
In lugnet.off-topic.geek, Todd Lehman writes:
> There's a little capplet called "webcontrol" which ships with RHL6.1 which
> is *almost* exactly what I need, but I can't seem to locate its source code
> anywhere (it seems to be part of some larger package (what package, I have
> no idea) rather than being its own package). If I can find that somewhere,
> I can hack it to do something more specialized.
Er, I should be more specific about what I'd like to do... I just want a
little applet that sits there and runs in a panel, and has a simple little
15-character edit box, and when I type stuff into the edit box and press
Enter, I want it to URL-escape the text I typed, paste that onto the end of
a hard-coded URL, and then pass that URL to Netscape Navigator on the command
line. For example, in Perl, the guts of it would go something like this:
sub runquery ($$)
{
my ($baseurl, $query) = @_;
$query =~ s/([^\ A-Za-z0-9\-\_\.])/sprintf("%%%02X",ord($1))/eg;
$query =~ tr/ /+/;
system("netscape $baseurl$query &");
}
And that's the whole program! :-) I just don't know how to hack up the GUI
portion which calls the invoke() function under Gnome, that's all. (Not yet,
anyway -- too many years suffering under Bill Gates -- and still pretty green
to this most excellent Gnome thing. :)
--Todd
|
|
Message has 1 Reply: | | Re: Custom launchers in Gnome panels?
|
| On Thu, 2 Mar 2000 06:15:21 GMT Todd Lehman <lehman@javanet.com> wrote concerning 'Re: Custom launchers in Gnome panels?': (...) hmmm... while I don't use the gnome stuff myself (too fancy, I like FVWM too much), why not write the whole thing in (...) (25 years ago, 2-Mar-00, to lugnet.off-topic.geek)
|
Message is in Reply To:
| | Custom launchers in Gnome panels?
|
| Anyone know a quick (say, 15 minutes or less) way to kluge up a custom launcher application for a Gnome panel? Something with a small edit box is all that's needed. There's a little capplet called "webcontrol" which ships with RHL6.1 which is (...) (25 years ago, 2-Mar-00, to lugnet.off-topic.geek)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|