Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How does Creator change the working directory?

How does Creator change the working directory?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    In run settings, the user is given the opportunity to change the working directory of the program to be run.

    How does this happen?

    I ask because I'm going to have to start putting together some test scripts for multiple programs, where the output of prog1 is the input to prog2, etc. If I can somehow perform this magic in bash, it could add a lot of flexibility to my tests.

    Thanks.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      No magic involved: Creator does a "cd /working/directory" before running the application.

      1 Reply Last reply
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        Oh, OK...so then it invokes the program with a relative (or absolute) pathname? Makes sense. Thanks...

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved