module Trollme::ChangeBackground
Public Instance Methods
call(path)
click to toggle source
# File lib/trollme/change_background.rb, line 5 def call(path) result = system("osascript -e 'tell application \"System Events\" to set picture of every desktop to (\"#{path}\" as POSIX file as alias)' ") raise 'an error ocurred when changing the background' unless result end