summaryrefslogtreecommitdiffstats
path: root/src/xdg-autostart-generator
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-08-23 18:55:24 +0200
committerMike Yuan <me@yhndnzj.com>2024-10-06 19:27:12 +0200
commit60cd6deb06d5c70beed1c91fd6c79e2f9e1d13cd (patch)
tree95e901edafd2b5aab6eceaa340d3d4e25e7b0e0c /src/xdg-autostart-generator
parentpath-lookup: move from basic/ to libsystemd/ (diff)
downloadsystemd-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.c2
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);