[英]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. valac命令行中的-X -mwindows标志不足,因为我生成的程序不是使用此标志构建的。
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: 您可能需要研究GLib(确切地说是GIO)
GSubprocess
API,该API是各种操作系统上各自包装的包装:
https://developer.gnome.org/gio/stable/GSubprocess.html https://developer.gnome.org/gio/stable/GSubprocess.html
Word of warning: needs a recent version of GIO ( >= 2.40
) 警告词:需要最新版本的GIO(
>= 2.40
)
(this should have been a comment, but Im missing the reputation...) (这本来应该是评论,但我错过了声誉...)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.