Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    SDK and install pahts

    Reply
    evk | # 1 | 2014-02-06, 17:48 | Report

    I need to include a couple of files with my app. They are not really QML-related, so I'm putting them in their own directory as a sibling to qml.

    As far as I understand, I can do this in the .pro file, like this:

    myfiles.files = myfiles
    myfiles.path = /usr/share/$${TARGET}
    INSTALLS += myfiles

    This places the files in /usr/share/myapp/myfiles/ and that's fine. The QML stuff is placed in /usr/share/myapp/myfiles/

    I do not set organization name, so it's defaulting to myapp.

    To find my files, I call QStandardPaths::standardLocations(QStandardPaths:: DataLocation);
    And I get three paths:
    /home/nemo/.local/share/myapp/myapp
    /usr/local/share/myapp/myapp
    /usr/share/myapp/myapp

    And I look for myfiles in each of the paths, and that all fine, except, that my files are in /usr/share/myapp/myfiles, not /usr/share/myapp/myapp/myfiles.

    What's the correct way to handle this? I assume this is related to the changes in 1.0.3.8.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout