2015-02-14 20:05 GMT+01:00 Benjamin Block <b...@mageta.org>: > Hello folks, > > just a short question about QDesktopServices. When you call the openUrl() > function, the documentation states that the URL "will be opened with a > suitable > application". But how does qt decide what application to use? > > For example, in case I open a gif-image, it will open said image in gimp > on my > Linux.. which is kinda fitting, but I'd rather have it open the image with > a > normal viewer. Where does qt get this information from? My desktop > environment > (kinda KDE, but not really :D) is already properly configures and opens the > proper viewer in case I use a normal file browser like dolphin. >
I don't know the answer to your question, but I would suspect Qt will follow the freedesktop.org specification for default applications on Linux. What does xdg-open 'file:///path/to/your.gif' give you? Elvis > Any hints? > > > best regards, > - Benjamin > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest