Re: how to open application on button click from another application



neeraj sharma wrote:

    I am working on gtk and I want to run an already
created application from my program on button click.I
am unable to find any solution till now.


Hi Neeraj, on *nix systems you can just use system():

static void
button_clicked( GtkWidget *button, MyData *datas )
{
    if( system( "xv myfile.jpg" ) )
        alert( "unable to run gimp!" );
}




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