开发者

Python webbrowser.open() fails on Debian

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

python -c "import webbrowser; webbrows开发者_JS百科er.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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜