Re: gnome URL handler (was Comments on the new gnome-terminal.)
Vineet Kumar declaimed:
> * paul (paul@mackinney.net) [020707 00:48]:
> > Well, I figured out to to launch it with Mutt running inside, but I've
> > hit a gotcha: When I ctrl-click a hyperlink, it wants to launch a new
> > instance of Mozilla instead of opening a new tab in the current
> > instance. This is useless, since Mozilla won't launch a new instance
> > with my profile if it's already running. And since this feature is the
> > only reason I run gnome-terminal at all, I'd like to figure it out.
>
> I believe you'll have to set the URL handler for http URLs to
> 'gnome-moz-remote --newwin "%s"'. That'll be done in a gnome capplet,
> probably, not a gnome-terminal preferences box. I'm not actually using
> gnome2, so they might have changed things around in the new one, but I'd
> bet that's still the way it is.
>
Many thanks. I don't run Gnome, but grepping found
.gnome/Gnome:default-show=gnome-moz-remote --newwin "%s"
and I do have man pages for gnome-moz-remote. Eliminating the newwin
didn't work around the issue. I'll log a bug with the Gnome folks and
see how far I get :-)
> > ...Or have a different
> > solution for an easy key-combo to go from hyperlink in a terminal to
> > Mozilla?)
>
> I've become accustomed to selecting the link (in a regular old xterm),
> switching over to a mozilla window, (optional: hitting ctrl+t to get a
> new tab,) and middle-clicking in the page to paste in the URL. Mozilla is
> good enough to take that paste and go there, without fiddling around
> with the selection of the address bar or whatnot.
Very nice, thanks! I'd been ommitting the ctrl-t step, so I had to click
at the end of the current URL and backspace to the beginning, frequently
highliting part of it by mistake and losing the buffer I wanted to
paste...
> This affords me the
> ability to configure my mutt window (an xterm) the way I like with my
> .Xresources file, and without having to go pointing and clicking at
> drop-down boxes and such (as I would have had to do to configure a
> gnome-terminal to do the same, I imagine).
Once you use the menus to configure it once (the new gnome-terminal lets
you create a named profile that can be invoke w/command line arguments),
you can write a shell script to launch it with Mutt running inside and
otherwise looking just like your default term. The only benefit is the
control-clicking URL feature, but I've gotten very used to it. If I
can't get it working, I'm sure I'll adopt your strategy.
Here's my script, $HOME/bin/m. Note that the --window-with-profile and
-x arguments are new to the gnome2 version of gnome-terminal.
#!/bin/sh
X=`ps -u $USER | grep mutt`
if [ -n "$X" ]; then
echo -n "Mutt is already running. Really continue? (y/N) "
read -n 1
if [ $REPLY == y ] || [ $REPLY == Y ]; then
gnome-terminal --window-with-profile=Mutt -x /usr/bin/mutt -e "source ~/.mutt-x-colors" &
echo
exit 0
fi
fi
gnome-terminal --window-with-profile=Mutt --geometry=80x48+598+0 -x /usr/bin/mutt -e "source ~/.mutt-x-colors" &
exit 0
PM
--
Paul Mackinney
paul@mackinney.net
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: