← Back to team overview

openerp-community team mailing list archive

Re: lp:~openerp-community/openobject-client/zehk_use-of-xdg-open into lp:openobject-client

 

> Hello,
> 
> Is doing this not enough ?
> 
> nch@Naresh:~/workspace/OpenERP2011/Trunk/client/bin$ bzr diff
> === modified file 'bin/printer/printer.py'
> --- bin/printer/printer.py      2011-03-17 12:59:55 +0000
> +++ bin/printer/printer.py      2011-10-04 08:57:06 +0000
> @@ -104,7 +104,7 @@
>          else:
>              if options.options['printer.preview']:
>                  if not softpath or (softpath and softpath in
> ['None','none']):
> -                    prog = self._findInPath(['xdg-open', 'gnome-open',
> 'see'])
> +                    prog = self._findInPath(['xdg-open', 'gnome-open', 'see
> ','kde-open'])
>                      return self._opener(lambda fn: os.execv(prog,
> (os.path.basename(prog), fn)))
>                  else:
>                      return self._opener(lambda fn: os.execv(softpath,
> (os.path.basename(softpath), fn)))
> 
> correct me if I am missing something !
> 
> Regards,

The problem is not with the PDF opener, it is in general. 

If he can't find the right application by using your list (defined for instance in line 119), it will search for another one who will open the document according with the user preferences.
-- 
https://code.launchpad.net/~openerp-community/openobject-client/zehk_use-of-xdg-open/+merge/77333
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-client/zehk_use-of-xdg-open.


References