X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Fpxdg.c;h=a43d075288551ef5040c4d502f8413857760dfa8;hp=14c3021fa9a2026dafcaf02c52264e48402af7c7;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=48da1ac5531838d157762882ee455cec4da05728 diff --git a/src/pxdg.c b/src/pxdg.c index 14c3021..a43d075 100644 --- a/src/pxdg.c +++ b/src/pxdg.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 jeanfi@gmail.com + * Copyright (C) 2010-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -27,10 +27,11 @@ #include #include +#include static const char *KEY_GNOME_AUTOSTART = "X-GNOME-Autostart-enabled"; -static char *get_user_autostart_dir() +static char *get_user_autostart_dir(void) { const char *xdg_cfg_dir; @@ -41,7 +42,7 @@ static char *get_user_autostart_dir() return path_append(xdg_cfg_dir, "autostart"); } -static char *get_user_desktop_file() +static char *get_user_desktop_file(void) { char *dir, *path; @@ -53,7 +54,7 @@ static char *get_user_desktop_file() return path; } -static const char *get_desktop_file() +static const char *get_desktop_file(void) { return DATADIR"/applications/"PSENSOR_DESKTOP_FILE; } @@ -98,7 +99,7 @@ static int is_user_desktop_autostarted(GKeyFile *f) NULL); } -int pxdg_is_autostarted() +int pxdg_is_autostarted(void) { char *user_desktop; unsigned int ret; @@ -179,7 +180,8 @@ void pxdg_set_autostart(unsigned int enable) enable_gnome_autostart(user_desktop); } else { /* because X-GNOME-Autostart-enabled does not turn off - * autostart on all Desktop Envs. */ + * autostart on all Desktop Envs. + */ remove(user_desktop); }