Re: can menu system handle this requirement ?
Sorry about the mangled messages. It is happening periodically since
yesterday and I don't know why.
*John Lapeyre wrote:
I want to add rasmol to the menu system. It runs only under X,
> but at the same time needs a terminal open for the command line interface.
> I'd like to say needs=X11, but still have the window manager open it in its
> preferred termial emulator. Is this possible ?
> I could just say needs=X11 and then
> command="/usr/X11R6/bin xterm -e rasmol", but what if xterm is not
> available? I look in /etc/alternatives and there doesn't seem to be a link
> that means "preferred terminal emulator".
I have one idea. Just put needs=text, so that a terminal is opened
under X11. rasmol is run from a wrapper script anyway, so I could just have
the wrapper script return an error message if it is run from a console. I
guess this is not a bad solution.
John Lapeyre <email@example.com>, firstname.lastname@example.org