0

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

Any Ideas?

5
  • stackoverflow.com/questions/780465/… Commented Feb 9, 2015 at 17:04
  • Using glib? in vala? Commented Feb 10, 2015 at 19:52
  • I don't think it works just using GLib. You can call any C function from Vala so it should be possible to write a VAPI file that interfaces CreateProcessW or maybe one of the ShellExecute* APIs. Commented Feb 10, 2015 at 21:51
  • 1
    You could of course also write a "proxy application" in any other language that you call from the normal GLib spawn methods. Maybe there even is a ready made program for this task. Commented Feb 10, 2015 at 21:53
  • fwiw, How to open/spawn a file with glib/gtkmm in Windows Commented Aug 2, 2017 at 11:13

1 Answer 1

1

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...)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.