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. Rasbian Buster Lite and QStandardPaths::AppConfigLocation
Qt 6.11 is out! See what's new in the release blog

Rasbian Buster Lite and QStandardPaths::AppConfigLocation

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 876 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.
  • F Offline
    F Offline
    fanate65
    wrote on last edited by fanate65
    #1

    Hello.
    Faced this behavior:
    Create a new project and literally add three lines

    #include <QStandardPaths>
    #include <QDebug>
    
    // in main
    qDebug() << QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
    

    If we run project Ctr+R from Qt Creator, we get
    "/home/pi/.config/<APPNAME>"
    If we run project F5 from Qt Creator, we get
    "//.config/<APPNAME>"
    Why does the result of executing a command in a program differ depending on the method of launch?
    This is only on Raspberry, on x86_64 the result is the identical and corresponds to the documentation.

    Yes, this is cross compilation QT5.15 for Raspberry

    Thank you!

    raven-worxR 1 Reply Last reply
    0
    • F fanate65

      Hello.
      Faced this behavior:
      Create a new project and literally add three lines

      #include <QStandardPaths>
      #include <QDebug>
      
      // in main
      qDebug() << QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
      

      If we run project Ctr+R from Qt Creator, we get
      "/home/pi/.config/<APPNAME>"
      If we run project F5 from Qt Creator, we get
      "//.config/<APPNAME>"
      Why does the result of executing a command in a program differ depending on the method of launch?
      This is only on Raspberry, on x86_64 the result is the identical and corresponds to the documentation.

      Yes, this is cross compilation QT5.15 for Raspberry

      Thank you!

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @fanate65
      a quick guess of mine would be that the $HOME env variable is missing in the second case

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • F Offline
        F Offline
        fanate65
        wrote on last edited by
        #3

        Everything is identical. One project, one environment. The only difference is in the method of launching Ctrl+R or F5.
        Where did the $HOME variable come from then in the first case?
        I would understand if the variable was missing in both cases. Or I switched Release / Debug, but I do not.
        Thank you!

        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