I think the best way is to launch:
/etc/alternatives/x-terminal-emulator

Richard

On Thursday June 30 2011 22:29:52 Dave Smith <[email protected]> wrote:
> I am writing a Linux desktop application (written in Qt) in which I'd 
> like to launch the user's preferred terminal. I am at a loss for a way 
> to do this that would work across multiple distros: RHEL5, RHEL6, Fedora 
> 13+, Ubuntu. I have used xdg-open, for example, to launch the user's 
> file browser, web browser, etc, but I am at a loss for how to launch the 
> correct terminal. For now, I have just resorted to always launching 
> "xterm", but that is pretty lame. At one point, the xdg-terminal script 
> looked promising (which I only found mentioned via Google), but none of 
> the package managers seem to know about xdg-terminal on any of the 
> aforementioned distros.
> 
> Any ideas?
> 
> --Dave

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to