Running external commands
Synchronously
This is synchronous, meaning it will block the eventloop
Asynchronously
This won’t block,
Running external scripts
Takes two to four arguments, returns Gio.Subprocess
Killing the process
Writing and reading files
Synchronously
Asynchronously
Monitoring files and directories
Canceling the monitor
Timeout and Interval
You can use native JS setTimeout
and setInterval
, they return a GLib.Source
Timeout
Interval
To cancel them use GLib.Source.destroy
You can use the ones from Utils
The widget parameter is optional
If you pass a widget to Utils.interval
, it will automatically be canceled,
when the widget is destroyed
To cancel them use GLib.source_remove
Lookup an Icon name
Fetch
should be pretty close to the web api
Authentication
authenticate a user using pam
Send Notifications