#!/usr/bin/ruby
#

require 'gconf2'

path = "/desktop/gnome/lockdown"

gclient = GConf::Client.default

if ARGV[1].nil?
puts "Pass a gconf path as the first arg."
puts "Defaulting to #{path}"
else
path = ARGV[1]
end

gclient.all_entries("/desktop/gnome/lockdown").each do |entry|
puts "Key: #{entry.key} | Value: #{entry.value}"
end