Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Ubuntu Run Qml Application on startup
Forum Updated to NodeBB v4.3 + New Features

Ubuntu Run Qml Application on startup

Scheduled Pinned Locked Moved Solved General and Desktop
qmlnvidia jetson tubuntu 14.04startup
16 Posts 3 Posters 9.4k Views 3 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.
  • P Offline
    P Offline
    p3c0
    Moderators
    wrote on 6 Oct 2016, 10:31 last edited by p3c0 10 Jun 2016, 10:31
    #7

    @RiteshPanchal Are you able to manually start the Qt application once system fully booted ?

    157

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RiteshPanchal
      wrote on 6 Oct 2016, 10:32 last edited by
      #8

      Yes. I can start the app by following from terminal
      export LD_LIBRARY_PATH=/usr/local/lib/arm-linux-gnueabihf/
      ./myApp

      M 1 Reply Last reply 6 Oct 2016, 10:36
      0
      • R RiteshPanchal
        6 Oct 2016, 10:32

        Yes. I can start the app by following from terminal
        export LD_LIBRARY_PATH=/usr/local/lib/arm-linux-gnueabihf/
        ./myApp

        M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 6 Oct 2016, 10:36 last edited by
        #9

        @RiteshPanchal said in Ubuntu Run Qml Application on startup:

        export LD_LIBRARY_PATH=/usr/local/lib/arm-linux-gnueabihf/
        ./myApp

        and you put those 2 lines in a .sh file and call it during boot
        and not the app directly?
        Just checking as calling the ".exe" directly wont work.

        R 1 Reply Last reply 6 Oct 2016, 10:40
        1
        • P Offline
          P Offline
          p3c0
          Moderators
          wrote on 6 Oct 2016, 10:37 last edited by
          #10

          @RiteshPanchal Ok. So the best way would be use autostart. On Ubuntu you can create a .desktop file and put it inside /etc/xdg/autostart or user's local autostart.
          The contents of this file follows this specification.
          For eg.

          [Desktop Entry]
          Version=1.0
          Encoding=UTF-8
          Name=My Application
          Comment=My Desktop Application
          Exec=/usr/local/app/launchmyapp.sh  #this script contains `export` and then launches app
          Terminal=false
          Type=Application
          

          157

          R 1 Reply Last reply 6 Oct 2016, 10:50
          3
          • M mrjj
            6 Oct 2016, 10:36

            @RiteshPanchal said in Ubuntu Run Qml Application on startup:

            export LD_LIBRARY_PATH=/usr/local/lib/arm-linux-gnueabihf/
            ./myApp

            and you put those 2 lines in a .sh file and call it during boot
            and not the app directly?
            Just checking as calling the ".exe" directly wont work.

            R Offline
            R Offline
            RiteshPanchal
            wrote on 6 Oct 2016, 10:40 last edited by
            #11

            @mrjj Ya i have put these 2 lines in .sh file and try to call this script on boot.
            But my question is where to put command from executing my .sh script so that it would load X11 and successfully run the app.?

            1 Reply Last reply
            0
            • P p3c0
              6 Oct 2016, 10:37

              @RiteshPanchal Ok. So the best way would be use autostart. On Ubuntu you can create a .desktop file and put it inside /etc/xdg/autostart or user's local autostart.
              The contents of this file follows this specification.
              For eg.

              [Desktop Entry]
              Version=1.0
              Encoding=UTF-8
              Name=My Application
              Comment=My Desktop Application
              Exec=/usr/local/app/launchmyapp.sh  #this script contains `export` and then launches app
              Terminal=false
              Type=Application
              
              R Offline
              R Offline
              RiteshPanchal
              wrote on 6 Oct 2016, 10:50 last edited by
              #12

              @p3c0 Ya. this method works.
              Thanks for your help.

              But if i pressed Alt+Tab or Windows button or any other windows key combination it will again show ubuntu.
              So is there any way to stop loading ubuntu unity home.? so my app user unable to accidentally minimized my app and can't access ubuntu?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                p3c0
                Moderators
                wrote on 6 Oct 2016, 11:01 last edited by p3c0 10 Jun 2016, 11:56
                #13

                @RiteshPanchal

                But if i pressed Alt+Tab or Windows button or any other windows key combination it will again show ubuntu.

                Window manager handles that part and in your case ubuntu unity. So look for a way to disable alt-tab from unity. I too dont know. A quick google search points out some.

                Actually instead of using a full Ubuntu you should use a Minimal Ubuntu and install only those packages which are required. Then start X server on boot and a lightweight window manager. There are many of those available and also highly customizable.

                157

                R 1 Reply Last reply 6 Oct 2016, 11:35
                0
                • P p3c0
                  6 Oct 2016, 11:01

                  @RiteshPanchal

                  But if i pressed Alt+Tab or Windows button or any other windows key combination it will again show ubuntu.

                  Window manager handles that part and in your case ubuntu unity. So look for a way to disable alt-tab from unity. I too dont know. A quick google search points out some.

                  Actually instead of using a full Ubuntu you should use a Minimal Ubuntu and install only those packages which are required. Then start X server on boot and a lightweight window manager. There are many of those available and also highly customizable.

                  R Offline
                  R Offline
                  RiteshPanchal
                  wrote on 6 Oct 2016, 11:35 last edited by
                  #14

                  @p3c0 Actually I am using nVidia Jetson TX1 board. And they are not giving flexibility to install minimal linux.
                  I need to search something else.
                  But thanks for your reply.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    p3c0
                    Moderators
                    wrote on 6 Oct 2016, 12:09 last edited by
                    #15

                    @You're Welcome :)

                    Actually I am using nVidia Jetson TX1 board. And they are not giving flexibility to install minimal linux.

                    Just curiosity. Why ?

                    157

                    R 1 Reply Last reply 6 Oct 2016, 12:20
                    0
                    • P p3c0
                      6 Oct 2016, 12:09

                      @You're Welcome :)

                      Actually I am using nVidia Jetson TX1 board. And they are not giving flexibility to install minimal linux.

                      Just curiosity. Why ?

                      R Offline
                      R Offline
                      RiteshPanchal
                      wrote on 6 Oct 2016, 12:20 last edited by
                      #16

                      @p3c0 There may be some advanced method for doing this.
                      But They have given sample-root-file-system and kernel source. This file system contains full ubuntu 14.04. And provided documents to compile kernel and flashing this file system to TX1 eMMC.

                      I think mostly TX1 user use this board in Robotics, Machine learning and embedded visual computing applications. So they required full ubuntu.

                      As for now i don't know any method to do that nor any post related on their forum. I will post a question on there forum. And hope for their reply soon.

                      1 Reply Last reply
                      0

                      16/16

                      6 Oct 2016, 12:20

                      • Login

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