I am attempting to open Firefox using C++ on Linux (Ubuntu). However, I get an segmentation fault. What am I doing wrong, and what should I do?
std::cout << system("/usr/bin/firefox") << std::endl;
/usr/bin/firefox works in commandline and when I run this program in debug mode in Netbeans, firefox starts like it should.
I hope to hear from you.