Re: how to control a process programmatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michele Calgaro via trinity-devel wrote:

> what exactly is that you would like to achieve? You question is not very
> clear. Are you talking about start/stop control of a process and sub
> processes or do you want to exchange data in a sync way with another
> process? Or something else?

When I start the application it should check if a specific program is
already started by the system or by other user - it doesn't matter. If this
program was started - do nothing, if the program is not started - the user
can decide to start it or not.

I read in the TQProcess documentation and some good articles, but I do not
see a trivial way. I think I'll have to try communication with the program
(dbus) and if the program answers it means it is running if not ... the
user can decide what to do. I think this is the only "proper" way from what
I understood. The thing is that it should be done by the program itself.
I was hoping KUniqueApplication would do the work, but obviously it doesn't
(I didn't have time to see why). So I think I'll stick to following
algorithm
        Start 
        try dbus
        if dbus instance exists, then exit
        if dbus instance does not exist, start new instance.

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting




[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux