~ubuntu-branches/ubuntu/trusty/onboard/trusty-proposed

« back to all changes in this revision

Viewing changes to Onboard/Config.py

  • Committer: Package Import Robot
  • Author(s): Francesco Fumanti
  • Date: 2012-10-26 22:06:50 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20121026220650-prxliq0v5uzc95qg
Tags: 0.98.2-0ubuntu1
* Sponsorship request for Ubuntu Raring (LP: #1071888)
* Fix keys with operators (+,-,*,/) on the number keypad of Onboard
* Fix failure to instantiate Config singleton with python 3.3
* Fix distutils-extra build with python3.3
* Sync translations files with the 0.98 branch in rosetta as of 2012-10-26
* debian/control: demote mousetweaks from Recommends to Suggests
* debian/rules: build for all python3 versions, by Matthias Klose
* debian/patches: add defaults file with values appropriate for Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
DEFAULT_RESIZE_HANDLES     = list(Handle.RESIZERS)
74
74
 
75
75
SCHEMA_VERSION_0_97         = Version(1, 0)   # Onboard 0.97
76
 
SCHEMA_VERSION_0_98       = Version(2, 0)   # Onboard 0.97.1
 
76
SCHEMA_VERSION_0_98         = Version(2, 0)   # Onboard 0.97.1
77
77
SCHEMA_VERSION              = SCHEMA_VERSION_0_98
78
78
 
79
79
 
187
187
        parser.add_option("-q", "--quirks", dest="quirks",
188
188
                help=_("Override auto-detection and manually select quirks\n"
189
189
                       "QUIRKS={metacity|compiz|mutter}"))
 
190
        parser.add_option("--not-show-in", dest="not_show_in",
 
191
                metavar="DESKTOPS",
 
192
                help=_("Silently fail to start in the given desktop "
 
193
                       "environments. DESKTOPS is a comma-separated list of "
 
194
                       "XDG desktop names, e.g. GNOME for GNOME Shell."
 
195
                       ))
190
196
        options = parser.parse_args()[0]
191
197
        self.options = options
192
198
 
201
207
             log_params["level"] = getattr(logging, options.debug.upper())
202
208
        if False: # log to file
203
209
            log_params["level"] = "DEBUG"
204
 
            log_params["filename"] = "/tmp/onboard.log"
205
 
            log_params["filemode"] = "w"
 
210
            logfile = open("/tmp/onboard.log", "w")
 
211
            sys.stdout = logfile
 
212
            sys.stderr = logfile
206
213
 
207
214
        logging.basicConfig(**log_params)
208
215