Re-indent.
This commit is contained in:
parent
9c1d1fdcda
commit
c9d4c7138b
1 changed files with 16 additions and 12 deletions
|
@ -45,15 +45,19 @@ module Qasim
|
|||
def dbus_notify title, body, icon
|
||||
bus = Qt::DBusConnection.sessionBus
|
||||
if !bus.connected?
|
||||
$stderr.puts("Cannot connect to the D-BUS session bus.\n" \
|
||||
$stderr.puts(
|
||||
"Cannot connect to the D-BUS session bus.\n" \
|
||||
"To start it, run:\n" \
|
||||
"\teval `dbus-launch --auto-syntax`\n")
|
||||
"\teval `dbus-launch --auto-syntax`\n"
|
||||
)
|
||||
exit 1
|
||||
end
|
||||
msg = Qt::DBusMessage.create_method_call( 'org.freedesktop.Notifications',
|
||||
msg = Qt::DBusMessage.create_method_call(
|
||||
'org.freedesktop.Notifications',
|
||||
'/org/freedesktop/Notifications',
|
||||
'org.freedesktop.Notifications',
|
||||
'Notify' )
|
||||
'Notify'
|
||||
)
|
||||
msg.arguments = [ APP_NAME, Qt::Variant.from_value( 0, "unsigned int" ),
|
||||
icon, title, body, [], {}, -1 ]
|
||||
rep = bus.call( msg )
|
||||
|
|
Loading…
Reference in a new issue