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. Two different path on linux redHat
Forum Updated to NodeBB v4.3 + New Features

Two different path on linux redHat

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.3k 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.
  • P Offline
    P Offline
    Paco
    wrote on last edited by
    #1

    Hello,

    I have a problem when I want to launch my software.
    If I launch it from the console, th path is the executable directory path and this is good for me.
    But if I launch it with a double clic, the path is different and some texts files are not finding (help.txt and licence.txt for exemple).

    Have someone got a solution for that, my $PATH is configure, where is the double clic path ?

    Thanks a lot.
    Have a good day.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      That is not a Qt related problem, or is it?

      You should probably start a thread at a forum geared to Red Hat linux.

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Paco
        wrote on last edited by
        #3

        It's not a Qt problem, but I have it when I launch my Qt software because I need to open som files in "." directory.

        But if I find a solution, I will post it here, just in case for other people.

        Thanks

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

          I think you should follow the Linux standards and not put files like help.txt and license.txt next to the binaries. That will make packaging your application much harder as distributions will not allow for littering /usr/bin (or any other /bin dir) with non-binary files!

          The "FHS":http://www.pathname.com/fhs/ actually defines which file types should go where on a linux system.

          Using PATH to find your application binary is not recommended either: As you already found out it is not relyable:-) Use QCoreApplication::applicationFilePath() instead.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Paco
            wrote on last edited by
            #5

            I will try that, thak you for your help

            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