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. QtService data location
Qt 6.11 is out! See what's new in the release blog

QtService data location

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 781 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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    Hi,
    I'm developing QtService. It will run on Windows under Local System account. The service needs to save some data somewhere. What standard location to use for saving data?

    The service is accompanied with GUI application (it will run with standard privileges under users account) which needs to access that data also.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you already know QStandardPaths ? You have there a table that should help define the correct path to use depending on what type data you'll have to save.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MartinD
        wrote on last edited by
        #3

        For standard GUI application I normally use QStandardPaths::GenericDataLocation. For QtService application under Local System account this path points to C:/WINDOWS/system32/config/systemprofile/AppData/Local on Win10. I think this is not suitable location for storing data.

        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