You could simply try the X version first. If the X server fails to appear, exec returns with an error -- the only way exec can return. Then try the command-line version.
exec "$bin/$name.X", @args; exec "$bin/$name.cmd", @args;
After Compline,
Zaxo
In reply to Re: How to detect X?
by Zaxo
in thread How to detect X?
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |