← Back to team overview

ubuntu-phone team mailing list archive

Re: Access XML file in ~/

 

Thanks for responding.  My main issue is to access the file in a
relative path of ~/
Every user has a different path to get to their home folder
/home/<uniqueUserName>/.config/
I want it to access the XML file from a relative ~/.config/
so far it seems I can only hard code the location..
Permissions aren't my main concern right now, as I am making this
application mainly for the desktop at this point, and not necessarily as
a click app, yet, though this could have other uses once I get it pieced
together.

On 12/30/2013 04:19 PM, Nekhelesh Ramananthan wrote:
> Hi,
>
> I think you can read any XML with XMLListModel. I think the issue you
> should be worrying about is the app permission. I am pretty sure that
> you wouldn't be able to access files outside your app folder without
> additional permissions. So whether you use C++ or QML XMLListModel,
> the issue would be permissions. Unfortunately, I am not sure how to
> solve that issue. Hopefully someone on this mailing list can provide
> that answer.
>
> Cheers,
> Nekhelesh
>
>
> On Mon, Dec 30, 2013 at 10:24 PM, Israel <israeldahl@xxxxxxxxx
> <mailto:israeldahl@xxxxxxxxx>> wrote:
>
>     Is there a pure QML way to access and read an XML file from the users
>     home path?
>     I can already read and list the XML bits I want using
>     QtQuick.XmlListModel 2.0
>     But I want to access a file in the users ~/.config
>     Do I have to use C++ or is there some component somewhere to read and
>     write to one file outside the working directory?
>
>     --
>     Regards
>
>
>     --
>     Mailing list: https://launchpad.net/~ubuntu-phone
>     <https://launchpad.net/%7Eubuntu-phone>
>     Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>     <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~ubuntu-phone
>     <https://launchpad.net/%7Eubuntu-phone>
>     More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Regards


Follow ups

References