Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59008

QProcess::startDetached cannot execute a file without .exe extension that requires elevated privileges

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.6.1, 5.6.2
    • Core: I/O
    • None

    Description

      If you have an executable named foo.bar, you can start a process for it using QProcess::startDetached, but only if the executable doesn't require elevated priviledges. If an elevation is needed, Qt uses ShellExecuteEx instead of CreateProcess, but misses to pass classname "exefile", which causes the call to fail.
      See https://blogs.msdn.microsoft.com/oldnewthing/20140210-00/ for extra info and solution.

      Attachments

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

        Activity

          People

            stephan.reiter Stephan Reiter
            stephan.reiter Stephan Reiter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes