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

writing to process in Ubuntu 12.04

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • Some future release
    • 1.3.0, 1.4.0
    • General
    • None
    • Ubuntu 12.04 , Qt5.02

    Description

      I have slightly modified the "elevatedexecuteoperation" to be able to write to a process; the process basically expects a path to install some files.
      I'm currently inspecting the stdout from the process in the "readprocessoutput()" function and execute a write like this:

      if(output.startsWith("Please enter the destination directory"))

      { qDebug() << "got: " << QString::fromLocal8Bit(output); process->write(argument_w.toLocal8Bit()); }

      After building the project and installer tools, I'm able to write to the process and finish execution if I launch my installer from the terminal. When I start my installer by clicking on it, the write never takes place and I end up with a timeout error (because the process needs this path in order to do it's thing and finish). I added the "showStandardError" argument on my installation script (the one in the meta folder) and I see the line: "TERM environment variable not set." A person running the same code in Dolphin file manager didn't have this issue

      Attachments

        1. error.png
          21 kB
          Gabriel Perez
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            geperezg Gabriel Perez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes