Incorrect working directory when running apps with "desktop" kit

Bug #1667119 reported by zub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
New
Undecided
Unassigned

Bug Description

When running an application from the Ubuntu SDK IDE using the desktop kit, the working directory is always the user's home. I've been seeing this specifically with CMake project but looking at the code I think this is happening for all types of projects.

The working directory is set in UbuntuLocalRunConfiguration::ensureClickAppConfigured(). For an app without a launcher it's set to target()->project()->projectDirectory(). UbuntuLocalRunConfiguration::runnable() then uses it for r.workingDirectory.

But in ContainerDeviceProcess::fullCommandLine() there seems to be an inverted condition (https://bazaar.launchpad.net/~ubuntu-sdk-team/qtcreator-plugin-ubuntu/trunk/view/470/src/ubuntu/device/container/containerdeviceprocess.cpp#L68). The check should have been negated, i.e. if the path is *not* empty. This error causes the working directory from UbuntuLocalRunConfiguration to be ignored.

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.