The call to `printUsage()` happens in `BrowserApplication::initialize()`, which is after the constructor has been called. The base class `QApplication` seems to require a Mir server (or X server) running.
Conclusion ---------- - In order to be able to print the usage on the console without requiring a Mir server this call needs to be made before the constructor is called. - It may also be a good idea to check all the command line arguments and reject invalid ones. (Is there no module available for this, similar to Python's argparse? Can we use QCommandLineParser? http://doc.qt.io/qt-5/qcommandlineparser.html) References ---------- - http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/webbrowser-app/wily/view/head:/src/app/browserapplication.cpp#L121 - http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/webbrowser-app/wily/view/head:/src/app/browserapplication.cpp#L42 - http://doc.qt.io/qt-5/qcommandlineparser.html -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to webbrowser-app in Ubuntu. https://bugs.launchpad.net/bugs/1525147 Title: webapp-container needs some help Status in webapps-sprint: Confirmed Status in webbrowser-app package in Ubuntu: Confirmed Bug description: webapp-container doesn't provide much help on the command line: $ webapp-container Could not open manifest file: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon/manifest.json" Invalid webapps installation found: "/usr/share/unity-webapps/userscripts/unity-webapps-amazon" Using Oxide as the web engine backend QQmlComponent: Component destroyed while completion pending To manage notifications about this bug go to: https://bugs.launchpad.net/webapps-sprint/+bug/1525147/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp