summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rwxr-xr-xlinux/traycommand/traycommand11
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/traycommand/traycommand b/linux/traycommand/traycommand
index 6a4e9fe..7bd862a 100755
--- a/linux/traycommand/traycommand
+++ b/linux/traycommand/traycommand
@@ -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