Strictly speaking, starting a command in another terminal window is fairly easy: xterm -e /path/to/command. However, the problem you'll likely run into will be X client authentication. If your daemon is running as root, it wouldn't be hard to fork off a child process that takes on the client user's identity and sets up the necessary environment to use the user's existing X client, and then spawns the xterm. (You could probably use either fork() or exec() for the xterm, depending on how you want it to run.) But if you daemon will be running with lower privileges, building an environment where you can launch an xterm on the user's X client connection may be (should be) impossible.
|