~aw/openobject-client/5.0

« back to all changes in this revision

Viewing changes to bin/printer/printer.py

  • Committer: Xavier Morel
  • Date: 2010-07-06 11:57:25 UTC
  • Revision ID: xmo@openerp.com-20100706115725-213fia50ma3oyk68
[IMP] add gnome-open and see for PDF opening in non-darwin unices, remove open

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
        else:
103
103
            if options.options['printer.preview']:
104
104
                if options.options['printer.softpath'] is None:
105
 
                    prog = self._findInPath(['xdg-open', 'evince', 'xpdf', 'gpdf', 'kpdf', 'epdfview', 'acroread', 'open'])
 
105
                    prog = self._findInPath(['xdg-open', 'gnome-open', 'see', 'evince', 'xpdf', 'gpdf', 'kpdf', 'epdfview', 'acroread'])
106
106
                    def opener(fn):
107
107
                        self.__opener( lambda: os.execv(prog, (os.path.basename(prog), fn) ))
108
108
                    return opener