简体   繁体   English

瓦拉:使用Glib如何在Windows中没有控制台的情况下生成命令行

[英]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.

相关问题 我可以在不使用其他工具(例如腻子)的情况下使用Windows命令行ssh到Mac吗? - Can I ssh to Mac using Windows Command line without using other tool like putty? Windows命令行:如何在没有位置的情况下列出所有文件夹中的所有文件只是文件列表 - Windows Command line: how can I list all files in all folders without the location just a list of files 如何在 windows 命令行上使用单个命令创建多个文件? - How can I create multiple files using a single command on windows command line? 如何在Windows中执行命令行输出而不必生成bat文件? - How can I execute command line output in windows without having to generate a bat file? 如何使用 windows 命令行下载文件而无需输入代理密码? - How do I download a file using windows command line without having to input a proxy password? 如何在不使用第三方库的情况下在Windows本机C ++控制台应用程序中覆盖控制台的相同部分? - How can I overwrite the same portion of the console in a Windows native C++ console app, without using a 3rd Party library? 我可以在 Windows 中使用命令行升级 Node.js 吗? - Can I upgrade Node.js using command line in Windows? 如何使用 Windows 命令行在 Web 上打开当前的 GitHub 分支? - How can I open the current GitHub branch on Web using Windows command line? 如何从Windows命令行生成Bcrypt哈希 - How can I generate a Bcrypt hash from the Windows command line 如何在Windows命令行中运行Shell脚本? - How can I run shell script in Windows command line?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM