Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Osx environment variables
Forum Updated to NodeBB v4.3 + New Features

Osx environment variables

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 2.8k 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.
  • M Offline
    M Offline
    mirswith
    wrote on 27 Jul 2011, 17:44 last edited by
    #1

    Does anyone have some insight as to why the result from qgetenv("PATH") is different then if I drop to a shell and look at PATH using "env"?

    Thanks.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on 27 Jul 2011, 22:13 last edited by
      #2

      Do you run app from same shell? If not then environments can be different.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mirswith
        wrote on 27 Jul 2011, 22:16 last edited by
        #3

        No, my app is run from the desktop; I was under the impression the desktop shared the same environment as Terminal but this appears not to be the case. Any idea how to get the PATH off the default environment used when Terminal is started?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on 27 Jul 2011, 22:20 last edited by
          #4

          if you start it from desktop (not from qt creator or from other app with changed env) and you start shell without any additional env changes then I think envs should be identical.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mirswith
            wrote on 27 Jul 2011, 22:25 last edited by
            #5

            Ah.. Just noticed the path values I am hoping to find are being set in my .bash_profile; I have should checked there first.

            Thanks.

            1 Reply Last reply
            0

            1/5

            27 Jul 2011, 17:44

            • Login

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