Получилось! Примеры:
- Код: Выделить всё
new Process("synaptic").start();
Запустит менеджер пакетов Синаптик. (синхронно)
--
- Код: Выделить всё
var arguments = new Array("firefox", "yandex.ru");
Process.execute(arguments);
Откроет браузер Firefox с страничкой Яндекса (асинхронно)
-------------------------------------
Документация:
http://doc.trolltech.com/qsa-1.2.2/exte ... ework.htmlProcess Class Reference
The Process class is used to start external programs and to communicate with them. The Process class can start programs synchronously using Process.execute(), and asynchronously using new Process(...).start().
Static Properties
stdout : String; Contains the data sent to stdout during the last call to Process.execute(). This property is read-only.
stderr : String; Contains the data sent to stderr during the last call to Process.execute(). This property is read-only.
Ну и далее по тексту.