Application complains about invalid options if options are given

Bug #1244616 reported by Alberto Mardegan on 2013-10-25
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
platform-api
Undecided
Alexandre Abreu
qtubuntu (Ubuntu)
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

Víctor R. Ruiz (vrruiz) wrote :

I can reproduce this on the phone with image 100.

Changed in qtubuntu:
status: New → Confirmed
Víctor R. Ruiz (vrruiz) wrote :

The app needs --desktop_file_hint to start.

Changed in qtubuntu:
status: Confirmed → Invalid
Alberto Mardegan (mardy) on 2013-11-13
Changed in qtubuntu:
status: Invalid → New
summary: - Application aborts if options are given
+ Application complains about invalid options if options are given
description: updated

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) on 2014-10-06
Changed in platform-api:
status: New → In Progress
assignee: nobody → Alexandre Abreu (abreu-alexandre)
Launchpad Janitor (janitor) wrote :

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

Michał Sawicz (saviq) on 2017-03-13
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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers