← Back to team overview

ubuntu-phone team mailing list archive

Re: WARNING: Use application:/// URLs, not application://

 


Hi there,

I am trying to call the Ubuntu Terminal Application using QDesktopServices::openUrl() in C++.

I tried URL as  "application:///ubuntu-terminal-app.desktop".
I did not get any error message, but I did not get the terminal application.

Also tried from QML: Qt.openUrlExternally("application:///ubuntu-terminal-app.desktop");
and it did not work either.


Am I doing something wrong?

Thanks,
Carlos


On 09/26/2013 10:07 AM, Loïc Minier wrote:
         Hi there,

we just got this bug:
     https://bugs.launchpad.net/unity-scope-click/+bug/1231393

Unity 8 happens to use QUrl for parsing URLs and then opens them with
QDesktopServices::openUrl().  QUrl will lowercase the hostname part of
URLs and this can't be turned ooff.  The openUrl() use case is by
design, so can't switch to e.g. QString or would need Unity 8 to map
application:// to application:/// URLs (that would be ok though).

Please, if you maintain a component generating or consuming
application:// URLs, would you make sure the app name or .desktop file
name remains mixed case through your component and/or that you pass it
in the path part of the URL to other components?

    Thanks!



Follow ups

References