I would like to execute a command (e.g. ls) in Vala, like the os.system Python function, or better, the popen function. Any idea?
It is best to use the posix package. Then just Posix.system("command") , which returns an int.
posix
Posix.system("command")
http://www.valadoc.org/posix/Posix.system.html
OK, it turned out: Glib.Process.spawn_command_line_sync.