Changeset 2275

Show
Ignore:
Timestamp:
04/02/10 15:10:09 (3 years ago)
Author:
martin_r
Message:

gconf2 in fehlermeldung verpackt und programm ohne parameter aufrufbar gemacht

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • linux/traycommand/traycommand

    r1883 r2275  
    1010end 
    1111 
     12begin 
     13        require 'gconf2' 
     14rescue LoadError 
     15        $stderr << "########################################################\n" 
     16        $stderr << "# In order to run this programm you need ruby-gconf2!  #\n" 
     17        $stderr << "########################################################\n" 
     18        raise 
     19end 
     20 
    1221require 'yaml' 
    1322require 'pp' 
    1423require 'optparse' 
    1524require 'ostruct' 
    16 require 'gconf2' 
    1725 
    1826TRAYCOMMANDVERSION = [0,1] 
     
    4048begin 
    4149        optpars.parse! 
     50        $options.configfile ||= "layoutswitch.yaml" 
    4251rescue => e 
    4352        puts e