Module: GnomeHelper

Includes:
BashHelper
Defined in:
lib/sapis/gnome_helper.rb

Instance Method Summary collapse

Methods included from BashHelper

#encode_bash_filenames, encode_bash_filenames, safe_execute, #safe_execute, #simple_bash_execute, simple_bash_execute

Instance Method Details

#get_gnome_background_filenameObject



30
31
32
# File 'lib/sapis/gnome_helper.rb', line 30

def get_gnome_background_filename
  simple_bash_execute "gconftool -g /desktop/gnome/background/picture_filename"
end

#set_gnome_background(pic_path) ⇒ Object



26
27
28
# File 'lib/sapis/gnome_helper.rb', line 26

def set_gnome_background(pic_path)
  simple_bash_execute "gconftool -t string -s /desktop/gnome/background/picture_filename", pic_path
end