← Back to team overview

zim-wiki team mailing list archive

Re: Problem with print to browser

 

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 <foringer@xxxxxxxxx <mailto:foringer@xxxxxxxxx>> 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: <UnixFile:
    /usr/share/zim/templates/html/Print.html>
    DEBUG: Wrote <UnixFile: /home/test/Notebooks/Notes/Home.txt>
    DEBUG: Wrote <TmpFile: /tmp/zim-test/print-to-browser.html>
    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
    <https://launchpad.net/%7Ezim-wiki>
    Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
    <mailto:zim-wiki@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~zim-wiki
    <https://launchpad.net/%7Ezim-wiki>
    More help   : https://help.launchpad.net/ListHelp




References