Comment 2 for bug 1347010

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

> - Is there an API for applications to request the status of the screenlock password?

mterry told me you can do something like this:
09:02 < mterry> sudo -u phablet -i gdbus call --session
                --dest=com.canonical.UnityGreeter --object-path=/list
                --method=org.freedesktop.DBus.Properties.Get
                com.canonical.UnityGreeter.List EntryIsLocked

(you can make that an API call of course). Please talk to mterry if you have
questions with this API.

> - How can file manager determine if a directory is being exported over MTP?
>
09:17 < cyphermox> jdstrand: it's any files in the Downloads, Music, Documents,
                   Pictures, and Videos directories; that's all there is to it.
                   recognized extensions will get the files tagged as a
                   particular type, but they aren't filtered in any way

If you have other question regarding mtp, please talk to cyphermox.