回复:非 GUI 选项
首次公开证据
打开首次公开证据查看 1 个交叉存档
来源说明
Published on GitHub in February 2024 as part of Martti Malmi's testimony in the COPA v. Wright trial
关于在没有 GUI 的情况下运行同一个二进制文件,我找到了一些线索:
- GTK 支持在没有显示器的情况下运行程序: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check。 不过这并不能说明 wxWidgets 是否可行。
我看到它在 wxApp::Initialize 中调用 gtk-init-check。
我可以重写 Initialize,在抑制错误消息的同时调用原始实现,并忽略返回值。看来能正常工作。
对于命令行开关,你建议叫什么,以及如何描述它们?有什么传统标准吗?我目前使用: -daemon(或 -d) (启用 RPC 并在后台运行) -server (启用 RPC)
英文原文
展开英文原文
Just a few clues I've found about running the same binary without a GUI:
- GTK supports running a program without display: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. This doesn't tell if it's possible in wxWidgets though.
I see it calls gtk-init-check in wxApp::Initialize.
I can subclass Initialize, call the original one while suppressing the error message and ignore the return value. It seems to be working.
Any suggestions what to name the command line switches and how to describe them? Is there any traditional standard? I'm currently using: -daemon (or -d) (Enables RPC and runs in the background) -server (Enables RPC)