]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/path-documents.c
systemctl: do not fall back to StartUnit automatically for sleep operations
[thirdparty/systemd.git] / man / path-documents.c
CommitLineData
1fe6d37e 1/* SPDX-License-Identifier: MIT-0 */
f4d74c61 2
b35ed553 3#include <stdio.h>
fee1863c 4#include <stdlib.h>
2548ce6a 5#include <systemd/sd-path.h>
b35ed553
ZJS
6
7int main(void) {
fee1863c 8 int r;
b35ed553
ZJS
9 char *t;
10
fee1863c
TM
11 r = sd_path_lookup(SD_PATH_USER_DOCUMENTS, NULL, &t);
12 if (r < 0)
13 return EXIT_FAILURE;
14
b35ed553 15 printf("~/Documents: %s\n", t);
fee1863c
TM
16 free(t);
17
18 return EXIT_SUCCESS;
b35ed553 19}