I've got the following hardcoded list of terminals in my application:
"/usr/bin/konsole", // KDE "/usr/bin/gnome-terminal", // Gnome "/usr/bin/pantheon-terminal" // Pantheon (Elementary OS)
I then simply grab the first entry from this list that points to an existing file. Obviously, the problem is that the program stops working as soon as it's run on a system with unknown terminal binary. So, can I determine it in some generic way? Via some standard environment variable, perhaps?