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. << OpenFileDialog works only as root >>
QtWS25 Last Chance

<< OpenFileDialog works only as root >>

Scheduled Pinned Locked Moved General and Desktop
rootopenfiledialog
10 Posts 3 Posters 2.6k Views
  • 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.
  • H Offline
    H Offline
    Hatuey
    wrote on last edited by
    #1

    Hello,

    I am using some programs created using Qt (I am not developing any programs).

    After opening a program, I want to load a file. As a normal user, the OpenFile dialog appears but do not let me choose any file or even change the directory. If I run the same program as root (under linux), the OpenFile dialog behave normally.

    This happens with different programs compiled using Qt (Avogadro, Mercury, GDIS,...)

    Any ideas?

    Thx

    Hatuey

    1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      Please provide your Qt version, linux flavour and version.

      Did you check the file permissions on the opened directory?

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      H 1 Reply Last reply
      0
      • JohanSoloJ JohanSolo

        Please provide your Qt version, linux flavour and version.

        Did you check the file permissions on the opened directory?

        H Offline
        H Offline
        Hatuey
        wrote on last edited by
        #3

        @JohanSolo
        qmake --version:
        QMake version 2.01a
        Using Qt version 4.8.6 in /usr/lib64

        Linux flavour: OpenSUSE 13.2 64bits

        Yes, I do have read/write permission on the opened directory.

        1 Reply Last reply
        0
        • JohanSoloJ Offline
          JohanSoloJ Offline
          JohanSolo
          wrote on last edited by
          #4

          Apparently you're using the Qt version provided by OpenSUSE.

          By chance, do you know the Qt version against which the problematic application was linked?

          `They did not know it was impossible, so they did it.'
          -- Mark Twain

          H 1 Reply Last reply
          0
          • JohanSoloJ JohanSolo

            Apparently you're using the Qt version provided by OpenSUSE.

            By chance, do you know the Qt version against which the problematic application was linked?

            H Offline
            H Offline
            Hatuey
            wrote on last edited by
            #5

            @JohanSolo

            Nop, I do not know. It is possible to get that kind of information from the application executable?

            JohanSoloJ 1 Reply Last reply
            0
            • H Hatuey

              @JohanSolo

              Nop, I do not know. It is possible to get that kind of information from the application executable?

              JohanSoloJ Offline
              JohanSoloJ Offline
              JohanSolo
              wrote on last edited by
              #6

              @Hatuey said:

              Nop, I do not know. It is possible to get that kind of information from the application executable?

              I would say no.

              How did you install the software in the first place?

              `They did not know it was impossible, so they did it.'
              -- Mark Twain

              H 2 Replies Last reply
              0
              • JohanSoloJ JohanSolo

                @Hatuey said:

                Nop, I do not know. It is possible to get that kind of information from the application executable?

                I would say no.

                How did you install the software in the first place?

                H Offline
                H Offline
                Hatuey
                wrote on last edited by
                #7

                @JohanSolo
                The Avogadro soft is available form the distro repos (and can be download from: http://avogadro.cc/wiki/Main_Page.
                The Mercury software is only available by direct download from: http://www.ccdc.cam.ac.uk/Solutions/FreeSoftware/Pages/FreeMercury.aspx

                1 Reply Last reply
                0
                • JohanSoloJ JohanSolo

                  @Hatuey said:

                  Nop, I do not know. It is possible to get that kind of information from the application executable?

                  I would say no.

                  How did you install the software in the first place?

                  H Offline
                  H Offline
                  Hatuey
                  wrote on last edited by
                  #8

                  @JohanSolo Also it is not working with MEGA :(

                  1 Reply Last reply
                  0
                  • JohanSoloJ Offline
                    JohanSoloJ Offline
                    JohanSolo
                    wrote on last edited by
                    #9

                    Unfortunately I'm out of ideas... It might happen that they did something wrong when creating the binaries. Did you check the SUSE forums?

                    `They did not know it was impossible, so they did it.'
                    -- Mark Twain

                    1 Reply Last reply
                    0
                    • jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      "It is possible to get that kind of information from the application executable?" - it's easy.
                      Call ldd PATH_TO_EXECUTABLE in a terminal

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      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