public static int Main(string[] args) { QCoreApplication app = new QCoreApplication(args); if (!QDBusConnection.SessionBus().IsConnected()) { Console.Error.WriteLine("Cannot connect to the D-BUS session bus.\n" + "To start it, run:\n" + "\teval `dbus-launch --auto-syntax`\n"); return(1); } Ping ping = new Ping(); ping.Connect(QDBusConnection.SessionBus().Interface(), SIGNAL("serviceOwnerChanged(QString,QString,QString)"), SLOT("Start(QString,QString,QString)")); // start the process manually - doesn't work this way.. // QProcess pong = new QProcess(qApp); // pong.Start("mono ./complexpong.exe"); // pong.WaitForStarted(); return(QCoreApplication.Exec()); }
public static int Main(string[] args) { QCoreApplication app = new QCoreApplication(args); if (!QDBusConnection.SessionBus().IsConnected()) { Console.Error.WriteLine("Cannot connect to the D-BUS session bus.\n" + "To start it, run:\n" + "\teval `dbus-launch --auto-syntax`\n"); return 1; } Ping ping = new Ping(); ping.Connect(QDBusConnection.SessionBus().Interface(), SIGNAL("serviceOwnerChanged(QString,QString,QString)"), SLOT("Start(QString,QString,QString)")); // start the process manually - doesn't work this way.. // QProcess pong = new QProcess(qApp); // pong.Start("mono ./complexpong.exe"); // pong.WaitForStarted(); return QCoreApplication.Exec(); }