Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3658

Installing Qt while sudoed confuses user identity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.1
    • Tools
    • None
    • Linux/Wayland, Linux/X11

    Description

      Running installer using sudo creates the .qt-profile file in the root-user's home directory. 

      When running Qt Creator, the licensechecker is unable to locate the file and falls back to using namedlicense backend instead of using the licenseclient. 

      As using sudo clearly is a requirement to writing to /opt or equivalent directories, restricting installers to non-root users is not a solution. 

      As a quick and easy solution: 

      • Installer shall display a modal warning dialogue to the user when it detects that the user is running with elevated privileges. 

      However, as a speculative longer term solution evaluation - it's necessary to define how installations for multiple users would happen (or whether they would be allowed at all), this is out of scope of the initial solution (e.g profile file would be written to a more accessible location such as /usr/local/share, and check that location if the file is not available in the user's root directory. 

      Attachments

        Issue Links

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

          Activity

            People

              installerteam Installer Team
              vilavoniu Ville Lavonius
              Ville Lavonius Ville Lavonius
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes