Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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