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 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

    jsulmJ 1 Reply Last reply
    0
    • B bask185

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 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
        0
        • B bask185

          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 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

          • Login

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