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. Qt project run on raspberry pi boot
Forum Updated to NodeBB v4.3 + New Features

Qt project run on raspberry pi boot

Scheduled Pinned Locked Moved Solved Mobile and Embedded
6 Posts 4 Posters 2.3k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aysenur
    wrote on last edited by
    #1

    Re: run application on startup (raspberry PI)

    This is an old topic but I could not solve. I add the path and the run code on rc.local but pi does not start my application on boot. I copied the same path in home/pi/.bashrc file, this works when I click to terminal. How can I make my program to start on the boot of my raspberry pi?
    Thank you

    JonBJ 1 Reply Last reply
    0
    • A aysenur

      Re: run application on startup (raspberry PI)

      This is an old topic but I could not solve. I add the path and the run code on rc.local but pi does not start my application on boot. I copied the same path in home/pi/.bashrc file, this works when I click to terminal. How can I make my program to start on the boot of my raspberry pi?
      Thank you

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @aysenur
      Assuming there is nothing at all Qt in this question, you may get answers by posing it outside of anything Qt on, say, stackoverflow.

      JonBJ 1 Reply Last reply
      0
      • Pablo J. RoginaP Offline
        Pablo J. RoginaP Offline
        Pablo J. Rogina
        wrote on last edited by
        #3

        @aysenur I agree with @JonB it looks like your issue is not related to Qt itself. However, just in case, have you tried starting a different application from rc.local (please use a GUI app...) to check what could be wrong?

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1
        • JonBJ JonB

          @aysenur
          Assuming there is nothing at all Qt in this question, you may get answers by posing it outside of anything Qt on, say, stackoverflow.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @JonB
          And to add to what @Pablo-J-Rogina is suggesting, might it to be that wherever from your rc.local is too early to run a Qt if it is using a UI? By the time it gets to your ~/.bashrc file that's per user and you'll need & have a desktop, if you try to run it outside login the desktop might not be available or may not be allowed access?

          1 Reply Last reply
          0
          • J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            I would suggest going to
            ~/.config/lxsession/LXDE-pi/autostart
            and add your application to that file.

            something like this:
            @sudo /path/to/QtApp

            works fine for me


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            2
            • A Offline
              A Offline
              aysenur
              wrote on last edited by aysenur
              #6

              Thank you for your suggestions. I asked here because many people solved the issue with rc.local for python. I tried @J.Hilk suggestion. This solved the problem. Thank you. I also asked in raspberrypi forum. From the replies ; systemd under etc forlder is for this purpose and creating a service would solve the problem.

              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