Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Help me to code for Sailfish OS

    Reply
    Page 16 of 16 | Prev | 6   14     15   16 |
    peterleinchen | # 151 | 2020-11-06, 22:03 | Report

    You mean like ?
    Code:
    dconf dump /

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
    juiceme, levone1

     
    Markkyboy | # 152 | 2020-11-07, 07:35 | Report

    as per the response from peterleinchen, you can also output to file;

    Code:
    dconf dump / > dconf-output.txt

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Markkyboy For This Useful Post:
    juiceme, levone1

     
    aerique | # 153 | 2020-12-05, 16:10 | Report

    What's the proper way to store an apps settings?

    For my current (and first) app I'm for now just grabbing the `$HOME` environment variable and stuff a file in `$HOME/.config/app/settings`, but this is just for local dev and testing.

    Once I'm distributing it through OpenRepos I'd like to do it the proper way (if there is one).

    edit: Thanks for the hint, coderus. I've gone with:
    Code:
    QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by aerique; 2020-12-05 at 20:56.
    The Following User Says Thank You to aerique For This Useful Post:
    juiceme

     
    coderus | # 154 | 2020-12-05, 17:06 | Report

    Originally Posted by aerique View Post
    What's the proper way to store an apps settings?

    For my current (and first) app I'm for now just grabbing the `$HOME` environment variable and stuff a file in `$HOME/.config/app/settings`, but this is just for local dev and testing.

    Once I'm distributing it through OpenRepos I'd like to do it the proper way (if there is one).
    https://doc.qt.io/archives/qt-5.6/qstandardpaths.html

    Code:
    QStandardPaths::writableLocation(QStandardPaths::DataLocation)
    If you use QSettings class it will automatically create file in correct location.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 4 Users Say Thank You to coderus For This Useful Post:
    aerique, carlosgonz, juiceme, Maemish

     
    Page 16 of 16 | Prev | 6   14     15   16 |
vBulletin® Version 3.8.8
Normal Logout