QUESTION: How do I launch a Linux application from Kylix? ANSWER: There is a method you can use to execute a shell command that will launch the application: system(). This executes the command you specify in the string parameter, you will need to include libc in your uses clause. There is a return code of -1 if the call was not successful. You could do something like this: TForm.ButtonClick(Sender: TObject); var idError: integer; begin idError:= libc.system('emacs'); if idError = -1 then ShowMessage('Error: Program did not start'); end; |
Last Modified: 05-FEB-02