简体   繁体   中英

Vala: Using Glib how can I spawn a command line without console in windows

-X -mwindows flag in valac command line is insuficient because the program that I spawn is not builded with this flag.

Any Ideas?

You might want to look into GLib's (or GIO to be exact) GSubprocess API which is a wrapper around the respective on various operating systems:

https://developer.gnome.org/gio/stable/GSubprocess.html

Word of warning: needs a recent version of GIO ( >= 2.40 )

(this should have been a comment, but Im missing the reputation...)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM