gconf2 in fehlermeldung verpackt und programm ohne parameter aufrufbar gemacht
This commit is contained in:
parent
3b7497821f
commit
6527706d51
|
@ -9,11 +9,19 @@ rescue LoadError
|
|||
raise
|
||||
end
|
||||
|
||||
begin
|
||||
require 'gconf2'
|
||||
rescue LoadError
|
||||
$stderr << "########################################################\n"
|
||||
$stderr << "# In order to run this programm you need ruby-gconf2! #\n"
|
||||
$stderr << "########################################################\n"
|
||||
raise
|
||||
end
|
||||
|
||||
require 'yaml'
|
||||
require 'pp'
|
||||
require 'optparse'
|
||||
require 'ostruct'
|
||||
require 'gconf2'
|
||||
|
||||
TRAYCOMMANDVERSION = [0,1]
|
||||
|
||||
|
@ -39,6 +47,7 @@ optpars = OptionParser.new { |opts|
|
|||
|
||||
begin
|
||||
optpars.parse!
|
||||
$options.configfile ||= "layoutswitch.yaml"
|
||||
rescue => e
|
||||
puts e
|
||||
puts optpars
|
||||
|
|
Loading…
Reference in New Issue