Hello everybody;
Is there any way to execute program into terminal?. But main program will start by double click... Not run from terminal...
Thank You?
RunProgram("myProgram","","")
Force run program into Terminal?
- greyhoundcode
- Enthusiast
- Posts: 108
- Joined: Sun Dec 30, 2007 7:24 pm
Re: Force run program into Terminal?
So it sounds like you have written a command line app, but wish to create a desktop/launcher icon for it that will automatically open this app in the terminal. If so, what I would do in this situation (Ubuntu) is create a .desktop file and include an entry along the following lines:
That is, you would really be launching the Gnome terminal emulator and telling it to immediately execute your app. Of course, not every distro uses the .desktop launcher format and they won't all use Gnome Terminal, either, so you'd need to adapt to suit.
Code: Select all
Name=My App
Exec=gnome-terminal -x path/to/myapp