pub fn get_service_data_dir_path(
custom_path: Option<PathBuf>,
owner: Option<String>,
) -> Result<PathBuf>
Expand description
Get the data directory for the service.
It’s a little counter-intuitive, but the owner will be None
in the case of a user-mode
service, because it will always run as the current user. The owner
is really to specify the
non-root user for running a system-wide service.