Public bug reported:

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.

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1667119

Title:
  Incorrect working directory when running apps with "desktop" kit

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1667119/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to