Created
July 28, 2016 12:46
-
-
Save arteymix/b1d9e5c9462d898b7d334285f2e46450 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Updater.Application : GLib.Application | |
{ | |
public override int command_line (ApplicationCommandLine command_line) { | |
var dnf = new Subprocess (SubprocessFlags.NONE, "dnf", "install", "glib-2.0-devel"); | |
hold (); // hold until the operation completes | |
dnf.wait_check_async (() => { | |
try { | |
dnf.wait_check_async.end (); | |
} finally { | |
release (); | |
} | |
}); | |
return 0; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update