简体   繁体   中英

Python webbrowser.open() fails on Debian

When i run webbrowser.open() method, as in

python -c "import webbrowser; webbrowser.open_new_tab('http://www.google.it')"

The command open me a tab in the correct browser (chromium) but load a local copy of the file, in this case file:///var/tmp/kdecache-norby/krun/6225.0. that contains html but obviusly doesn't work as a dynamic page.

It fails with a debian unstable with KDE 4.4.5, contrairly with my Ubuntu installation where it work as expected. Any idea about the problem?

The problem is about kfmclient used by webbrowser module in KDE context. It wrongly openes remote files as local, as explained in http://portland.freedesktop.org/wiki/TaskOpenURL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM