AppMan: Implement support for a DESKTOP_FILE_HINT env var, with same purpose as desktop_file_hint

Bug #1484892 reported by Gerry Boland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtmir (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

Fact: the --desktop_file_hint=/path/to/desktopFile.desktop command line parameter is a hack to enforce tight coupling of a process with its metadata (the desktop file contents). It should not be used in production, is only for convenience in testing.

But many applications (rightly) exit at startup when supplied with a command line parameter they do not support .

For Qt upstreaming, we want to be able to run the existing QTestLib-based tests against QtMirCompositor. But they all currently quit due to the --desktop_file_hint switch.

Adding support for an environment variable DESKTOP_FILE_HINT with the same purpose as the command line switch would fix this issue.

There are also places on Ubuntu which (ab)use --desktop_file_hint to avoid having to launch their tests with upstart. I want to flush these out, so eventually removing support for this switch would achieve that - so this env var would be handy fallback for us.

Tags: qt-upstream
Gerry Boland (gerboland)
description: updated
tags: added: qt-upstream
Changed in qtmir:
status: New → Incomplete
status: Incomplete → Confirmed
status: Confirmed → Triaged
Michał Sawicz (saviq)
affects: qtmir → qtmir (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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