Re: run a new application

2006-11-24 Thread Guy Rouillier
Jim George wrote: >> cmd.exe is surprisingly more powerful than a lot of people realize >> though I still personally abhor it. >> -jkl >> > > May be so, but you can't do things that you take for granted in Unix, > like running multiple commands in sequence with a semicolon. And, as You can strin

Re: run a new application

2006-11-24 Thread Jim George
> cmd.exe is surprisingly more powerful than a lot of people realize > though I still personally abhor it. > -jkl > May be so, but you can't do things that you take for granted in Unix, like running multiple commands in sequence with a semicolon. And, as far as I know, the "system" function in mo

Re: run a new application

2006-11-24 Thread John K Luebs
On Thu, Nov 23, 2006 at 10:23:13PM -0700, Jim George wrote: > > shell to run the commandline specified. I'm not sure the behavior on > > Windows, but I imagine it probably uses the windows shell to execute the > > command line. > > There is no shell in Windows, and there is no argument parsing of

Re: run a new application

2006-11-24 Thread Tor Lillqvist
Jim George writes: > There is no shell in Windows, Well, there is obviously no POSIX shell, but there sure is an interactive command interpreter, cmd.exe. (I am ignoring command.com in the obsolete Win9x/ME.) > and there is no argument parsing of the command line, AFAIK The system() function i

Re: run a new application

2006-11-23 Thread Yeti
On Fri, Nov 24, 2006 at 04:42:52AM +0200, Tor Lillqvist wrote: > > But for somebody who doesn't know about system(), the g_spawn*() > functions probably have too many options to get lost in... Only until the naturally following question: `I run system("/usr/games/same-gnome"); and my program froz

Re: run a new application

2006-11-23 Thread Jim George
> shell to run the commandline specified. I'm not sure the behavior on > Windows, but I imagine it probably uses the windows shell to execute the > command line. There is no shell in Windows, and there is no argument parsing of the command line, AFAIK _

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 04:42 +0200, Tor Lillqvist wrote: > Michael Torrie writes: > > there are routines in glib that should help you: > > > http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html > > > This is probably the most portable mechanism for running processes. > > Bu

Re: run a new application

2006-11-23 Thread Tor Lillqvist
Michael Torrie writes: > there are routines in glib that should help you: > http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html > This is probably the most portable mechanism for running processes. But for somebody who doesn't know about system(), the g_spawn*() functions

Re: run a new application

2006-11-23 Thread Tor Lillqvist
sunzysjzri writes: > I want run "/usr/games/same-gnome" for example, how to do it? system ("/usr/games/same-gnome"); --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 10:26 +0800, sunzysjzri wrote: > >sunzy writes: > > > how to run a new application in a button's callback function?? > > > >system() ? > > > >--tml > > > would you like to write it clearly? > e.g. > my button cal

Re: run a new application

2006-11-23 Thread sunzysjzri
>sunzy writes: > > how to run a new application in a button's callback function?? > >system() ? > >--tml > would you like to write it clearly? e.g. my button callback function: void leftbutton_clicked(GtkWidget *widget, gpointer my_data) { } and I want run "/usr/

run a new application

2006-11-23 Thread Tor Lillqvist
sunzysjzri writes: > how to run a new application in a button's callback function?? system() ? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

run a new application

2006-11-23 Thread sunzysjzri
hi, how to run a new application in a button's callback function?? sun zhiyong 2006-11-24 [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list