Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-7029

QDir::currentPath() returns deifferent values in application when its run from QtCreator or when its started on device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • Qt Creator 2.5.0-beta
    • Qt Creator 2.4.0
    • All Other Issues
    • None
    • Linux + embedded linux device

    Description

      Please check the attached application, when it's run/debug-ed from QtCreator on an embedded linux device through SSH then the output coming from QDir::currentPath(); is different when the user logs in through terminal and cd to remote dir and runs the app from there.
      QDir::setCurrent(QCoreApplication::applicationFilePath()); or chdir(qPrintable(QCoreApplication::applicationFilePath())); also doesn't work.
      Setting PWD or HOME in system environments doesn't help.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes