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 SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in Ubuntu. https://bugs.launchpad.net/bugs/1667119 Title: Incorrect working directory when running apps with "desktop" kit Status in qtcreator-plugin-ubuntu package in Ubuntu: New 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 manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1667119/+subscriptions -- Mailing list: https://launchpad.net/~ubuntu-sdk-bugs Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs More help : https://help.launchpad.net/ListHelp

