I wrote a dead-simple shell script to start cgminer, and it works, but the peculiar thing is that it starts up fine from an existing terminal, but it won't start if I just double-click the script and select run in terminal, or when I add it to Ubuntu start-up applications (or try to call it from another script). It didn't work before on Linuxcoin and now I'm still having this problem with Ubuntu. I've looked around everywhere but I can't find a working fix, any hints?
Either use an option to point it to the kernels or add a cd /path/to/cgminer before the line starting the binary.
Use a wrapper utility such as start-stop-daemon, suppress all output with 'really-quiet' flag.