ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #01935
Re: Ubuntu Filemanager and homePath()
Hi Daniel,
Ubuntu filemanager uses QDir::homePath() because it uses a C++ plugin.
I do not know any way of getting it in QML, but, I think you can use the
File Manager plugin to get this information in your application, like this:
import org.nemomobile.folderlistmodel 1.0
FolderListModel {
id: fm
}
..
on some event like onClicked
onClicked: {
var homedir = fm.homePath()
console.log("home="+homedir)
}
Regards,
Carlos
On 05/14/2013 07:16 PM, Daniel Holm wrote:
Hi all,
I'm trying to figure out how to get the home dir of the user with QML,
and I can see that Ubuntu filemanager, the core app, has a variable
that it uses to get the home dir: homePath()
I can't find anything else about it, and I can't use it in Music.
Could someone please help me? This is a big show stopper for packaging.
References