Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. I cannot load sqlite table when my qml application autostart on linux
Forum Updated to NodeBB v4.3 + New Features

I cannot load sqlite table when my qml application autostart on linux

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.5k 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.
  • C Offline
    C Offline
    cokefish
    wrote on last edited by
    #1

    I use sqlite db in my qml application.
    I want my application could be autostart when my linux device start up.

    when I debug my application, I run my qml application on command line after my linux device startup,
    the application could run well.

    but after I append it into the system /etc/initab, every time the qml application runs while the linux device start up,
    it will prompt error as below

    bq. Error: no such table: XXXX Ubable to execute statement

    Could you please tell me the reason why?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      daliusd
      wrote on last edited by
      #2

      Maybe you run it under different user from /etc/initab (e.g. as root) and naturally it looks for DB in other location.

      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