Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Raspberry Pi freezes when trying to execute a shellscript

Raspberry Pi freezes when trying to execute a shellscript

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 962 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.
  • B Offline
    B Offline
    bask185
    wrote on 28 Jul 2017, 07:06 last edited by
    #1

    I have a Rpi 3 with a Qt application when I push a button a shellscript must get executed. The script just launches the chromium browser in kiosk mode which loads the site youtube. Manually running the script works perfectly. The script and the application all have the right permissions.

    I use in the pushbutton's event:

    system(qPrintable("./youtube.sh"));
    

    This works on my ubuntu PC without problems. The binary is cross-compiled for the Rpi. I do not know why the Rpi freezes. I cannot even do Ctrl Alt F1

    J 1 Reply Last reply 28 Jul 2017, 07:46
    0
    • B bask185
      28 Jul 2017, 07:06

      I have a Rpi 3 with a Qt application when I push a button a shellscript must get executed. The script just launches the chromium browser in kiosk mode which loads the site youtube. Manually running the script works perfectly. The script and the application all have the right permissions.

      I use in the pushbutton's event:

      system(qPrintable("./youtube.sh"));
      

      This works on my ubuntu PC without problems. The binary is cross-compiled for the Rpi. I do not know why the Rpi freezes. I cannot even do Ctrl Alt F1

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 28 Jul 2017, 07:46 last edited by
      #2

      @bask185 Does it work if you execute the script manually on your RPi?

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

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bask185
        wrote on 28 Jul 2017, 08:24 last edited by
        #3

        yes it does, it only has one command to execute.

        "DISPLAY=:0 chromium-browser -kiosk www.youtube.com"
        

        I also tried to input this command instead of the shellscript as in:

        system(qPrintable("DISPLAY=:0 chromium-browser -kiosk www.youtube.com"));
        

        But no change, total system freeeze

        M 1 Reply Last reply 28 Jul 2017, 12:07
        0
        • B bask185
          28 Jul 2017, 08:24

          yes it does, it only has one command to execute.

          "DISPLAY=:0 chromium-browser -kiosk www.youtube.com"
          

          I also tried to input this command instead of the shellscript as in:

          system(qPrintable("DISPLAY=:0 chromium-browser -kiosk www.youtube.com"));
          

          But no change, total system freeeze

          M Offline
          M Offline
          mvuori
          wrote on 28 Jul 2017, 12:07 last edited by
          #4

          Are you sure that the default directory of you application is correct (that is, ./ points to the right place?)?

          1 Reply Last reply
          0

          1/4

          28 Jul 2017, 07:06

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved