Re: [Zim-wiki] Problem with print to browser

2014-04-11 Thread nik

Thank you, Jaap.

I solved the problem by removing associated file for wine webbrowser in 
~/.local/share/mime/application directory.


05.04.2014 15:57, Jaap Karssenberg ?:
Zim calls the python "webbrowser" module to open the file. This module 
looks at your environment to determine your default browser. So you 
indeed need to change the settings for this user. See 
https://docs.python.org/2/library/webbrowser.html .


Now I can't tell you how / where your system configured the browser, 
there are many variants.


The sure way to overrule is to make sure the "$BROWSER" environment 
variable is set, that should overrule other options.


Regards,

Jaap



On Fri, Apr 4, 2014 at 1:25 PM, nik > wrote:


Hello list!

Where does zim takes config information for plugin "Print to browser"?

I have a problem now, when I use Ctrl+P it tries to open
winebrowser which was installed on my computer, but for now i
removed that package.

Debug log is:

DEBUG: Action: print_to_browser
INFO: Loading template from: 
DEBUG: Wrote 
DEBUG: Wrote 
DEBUG: open_url(file:///tmp/zim-test/print-to-browser.html)
INFO: Opening in webbrowser:
file:///tmp/zim-test/print-to-browser.html
env: wine: No such file or directory


I've created another test user on my system and under it "Print to
browser" works fine. So I think that it is configuration problem
in my current user environment.

Any suggestions?
Thanks in advanced.



___
Mailing list: https://launchpad.net/~zim-wiki

Post to : zim-wiki@lists.launchpad.net

Unsubscribe : https://launchpad.net/~zim-wiki

More help   : https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Problem with print to browser

2014-04-05 Thread Jaap Karssenberg
Zim calls the python "webbrowser" module to open the file. This module
looks at your environment to determine your default browser. So you indeed
need to change the settings for this user. See
https://docs.python.org/2/library/webbrowser.html .

Now I can't tell you how / where your system configured the browser, there
are many variants.

The sure way to overrule is to make sure the "$BROWSER" environment
variable is set, that should overrule other options.

Regards,

Jaap



On Fri, Apr 4, 2014 at 1:25 PM, nik  wrote:

> Hello list!
>
> Where does zim takes config information for plugin "Print to browser"?
>
> I have a problem now, when I use Ctrl+P it tries to open winebrowser which
> was installed on my computer, but for now i removed that package.
>
> Debug log is:
>
> DEBUG: Action: print_to_browser
> INFO: Loading template from:  Print.html>
> DEBUG: Wrote 
> DEBUG: Wrote 
> DEBUG: open_url(file:///tmp/zim-test/print-to-browser.html)
> INFO: Opening in webbrowser: file:///tmp/zim-test/print-to-browser.html
> env: wine: No such file or directory
>
>
> I've created another test user on my system and under it "Print to
> browser" works fine. So I think that it is configuration problem in my
> current user environment.
>
> Any suggestions?
> Thanks in advanced.
>
>
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp