ensure_shared_data_dir


Description:

public async string ensure_shared_data_dir (string username, Cancellable? cancellable) throws Error

Ensure that a shared data dir for the given user is available.

Both the greeter user and username will have write access to that folder. The intention is that larger pieces of shared data would be stored there (files that the greeter creates but wants to give to a user -- like camera photos -- or files that the user creates but wants the greeter to see -- like contact avatars).

LightDM will automatically create these if the user actually logs in, so greeters only need to call this method if they want to store something in the directory themselves.

Parameters:

this

A Greeter

username

A username

cancellable

A Cancellable or null.

callback

A TaskReadyCallback to call when completed or null.

user_data

data to pass to the callback or null.