diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-08-23 18:55:24 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-10-06 19:27:12 +0200 |
commit | 60cd6deb06d5c70beed1c91fd6c79e2f9e1d13cd (patch) | |
tree | 95e901edafd2b5aab6eceaa340d3d4e25e7b0e0c /src/xdg-autostart-generator | |
parent | path-lookup: move from basic/ to libsystemd/ (diff) | |
download | systemd-60cd6deb06d5c70beed1c91fd6c79e2f9e1d13cd.tar.xz systemd-60cd6deb06d5c70beed1c91fd6c79e2f9e1d13cd.zip |
path-lookup: deduplicate xdg_user_*() with sd_path_lookup()
While at it, place ret param at last.
Diffstat (limited to 'src/xdg-autostart-generator')
-rw-r--r-- | src/xdg-autostart-generator/xdg-autostart-generator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-generator.c b/src/xdg-autostart-generator/xdg-autostart-generator.c index 71e1a66435..455f371fa8 100644 --- a/src/xdg-autostart-generator/xdg-autostart-generator.c +++ b/src/xdg-autostart-generator/xdg-autostart-generator.c @@ -27,7 +27,7 @@ static int enumerate_xdg_autostart(Hashmap *all_services) { _cleanup_free_ char *user_config_autostart_dir = NULL; int r; - r = xdg_user_config_dir(&user_config_autostart_dir, "/autostart"); + r = xdg_user_config_dir("/autostart", &user_config_autostart_dir); if (r < 0) return r; r = strv_extend(&autostart_dirs, user_config_autostart_dir); |