ubuntu-sdk-team team mailing list archive
-
ubuntu-sdk-team team
-
Mailing list archive
-
Message #00886
[Bug 1667119] [NEW] Incorrect working directory when running apps with "desktop" kit
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 team, which is subscribed to qtcreator-plugin-ubuntu in Ubuntu.
Matching subscriptions: ubuntusdktea_qtcreatorplugins
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