Skip to content

Instantly share code, notes, and snippets.

View shift's full-sized avatar

Vincent Palmer shift

View GitHub Profile
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
require 'rbus'
module Autotest::DBus
def self.notify title, msg, pri = 'Information', img = nil
title += " in #{Dir.pwd.split(/\//).last(3).join("/")}"
msg += " at #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}"
bus = RBus.session_bus
object = bus.get_object('org.freedesktop.Notifications','/org/freedesktop/Notifications')
object.interface!('org.freedesktop.Notifications')