
Originally Posted by
iswaryasenthilkumar
i want to execute this qt program in root directory of linux script.
What does that mean?
You want the root directory to be the program's current work directory?
Just have the script change to the root directory before you execute the program
cd /
/path/to/program
cd /
/path/to/program
To copy to clipboard, switch view to plain text mode
or have the program change its working directory:
QDir::setCurrent(QDir::rootPath());
To copy to clipboard, switch view to plain text mode
The question is: why would you need that?
Why would your program rely on that?
Cheers,
_
Bookmarks