PDA

View Full Version : How to use shell script files ?



npc
15th February 2007, 05:52
Hi,

In my application, I am using a shell script file, which is to be called at runtime.

The thing I really need is I wish to have that file in my source code directory, so that what should i do to get installed that file in a folder where they are accessible at runtime.

Currently those files are accessed from /root partition.

Thanks.
**pc**

jpn
15th February 2007, 07:27
The thing I really need is I wish to have that file in my source code directory, so that what should i do to get installed that file in a folder where they are accessible at runtime.

Currently those files are accessed from /root partition.
One option is to install the script file into the same directory than the application binary and then use QCoreApplication::applicationDirPath() when referring to the script.

npc
15th February 2007, 08:21
Fine thank you, I am using same application in Qt 3 also.. is there any similar method in Qt 3.3 ?

jpn
15th February 2007, 08:26
Fine thank you, I am using same application in Qt 3 also.. is there any similar method in Qt 3.3 ?
Did you try to search the docs of QApplication?