Application complains about invalid options if options are given

Bug #1244616 reported by Alberto Mardegan
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
platform-api
In Progress
Undecided
Alexandre Abreu
qtubuntu (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Passing options to applications make the application complain about unrecognized options.
For example:

============
$ system-settings -testability --desktop_file_hint=/usr/share/applications/ubuntu-system-settings.desktop
system-settings: invalid option -- 't'
system-settings: invalid option -- 'e'
system-settings: invalid option -- 's'
system-settings: invalid option -- 't'
system-settings: invalid option -- 'a'
system-settings: invalid option -- 'b'
system-settings: invalid option -- 'i'
system-settings: invalid option -- 'l'
system-settings: invalid option -- 'i'
system-settings: invalid option -- 't'
system-settings: invalid option -- 'y'
============

QUbuntu should just ignore any option it doesn't recognize.

Related branches

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

I can reproduce this on the phone with image 100.

Changed in qtubuntu:
status: New → Confirmed
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

The app needs --desktop_file_hint to start.

Changed in qtubuntu:
status: Confirmed → Invalid
Alberto Mardegan (mardy)
Changed in qtubuntu:
status: Invalid → New
summary: - Application aborts if options are given
+ Application complains about invalid options if options are given
description: updated
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

It comes from the platformapi that tries to catch the sidestage/desktop_hint etc. parameters before delegating the rest to the app ...

http://bazaar.launchpad.net/~phablet-team/platform-api/trunk/view/head:/android/hybris/ubuntu_application_api_for_hybris.cpp#L1031

getopts_long emits the warning,

Olivier Tilloy (osomon)
Changed in platform-api:
status: New → In Progress
assignee: nobody → Alexandre Abreu (abreu-alexandre)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Michał Sawicz (saviq)
affects: qtubuntu → qtubuntu (Ubuntu)
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.