jim-easterbrook / Photini

An easy to use digital photograph metadata (Exif, IPTC, XMP) editing application.
https://photini.readthedocs.io/
GNU General Public License v3.0
163 stars 24 forks source link

Maps aren't displayed - a browser window opens instead #41

Closed jim-easterbrook closed 5 years ago

jim-easterbrook commented 5 years ago

With the latest Manjaro Linux Photini's map tabs don't display a map. Instead a browser window opens with a url starting data:text/html;charset=UTF-8,.

A temporary workaround is to install the qt5-webkit package and edit the Photini configuration file to force using_qtwebengine = False.

jim-easterbrook commented 5 years ago

QtWebEngine has a method acceptNavigationRequest that derived classes can implement to open URLs in another window or browser. Previously this method was only called when a user clicks on a link on the map, but in Manjaro (and I assume other OS's with recent QtWebEngine) the method is called to load the JavaScript that displays the map.

Commit 94f0ff8 ensures it only gets called for links that are expected to be opened in a new window.