Advertisement
gavr123456789

Untitled

Jan 5th, 2019
3,204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.52 KB | None | 0 0
  1. void main(string[] args) {
  2. // Declaring variables
  3. var msg = "test";
  4. var notification = new GLib.Notification ("Synapse - Pastebin");
  5. notification.set_body (msg);
  6. //var gicon = GLib.Icon.new_for_string ("synapse");
  7. //notification.set_icon (gicon);
  8. GLib.Application.get_default ().send_notification (null, notification);
  9. }
  10.  
  11. /*console
  12. gavr@archlabs ~> vala console.vala --pkg gio-2.0
  13.  
  14. (process:4047): GLib-GIO-CRITICAL **: 15:18:49.922: g_application_send_notification: assertion 'G_IS_APPLICATION (application)' failed
  15. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement