projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a94b014
)
ANSI decl
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 06:37:27 +0000
(08:37 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Wed, 24 Sep 2014 06:37:27 +0000
(08:37 +0200)
src/pxdg.c
patch
|
blob
|
history
diff --git
a/src/pxdg.c
b/src/pxdg.c
index
14c3021
..
ec52fb0
100644
(file)
--- a/
src/pxdg.c
+++ b/
src/pxdg.c
@@
-27,10
+27,11
@@
#include <pio.h>
#include <plog.h>
#include <pio.h>
#include <plog.h>
+#include <pxdg.h>
static const char *KEY_GNOME_AUTOSTART = "X-GNOME-Autostart-enabled";
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;
{
const char *xdg_cfg_dir;
@@
-41,7
+42,7
@@
static char *get_user_autostart_dir()
return path_append(xdg_cfg_dir, "autostart");
}
return path_append(xdg_cfg_dir, "autostart");
}
-static char *get_user_desktop_file()
+static char *get_user_desktop_file(
void
)
{
char *dir, *path;
{
char *dir, *path;
@@
-53,7
+54,7
@@
static char *get_user_desktop_file()
return path;
}
return path;
}
-static const char *get_desktop_file()
+static const char *get_desktop_file(
void
)
{
return DATADIR"/applications/"PSENSOR_DESKTOP_FILE;
}
{
return DATADIR"/applications/"PSENSOR_DESKTOP_FILE;
}
@@
-98,7
+99,7
@@
static int is_user_desktop_autostarted(GKeyFile *f)
NULL);
}
NULL);
}
-int pxdg_is_autostarted()
+int pxdg_is_autostarted(
void
)
{
char *user_desktop;
unsigned int ret;
{
char *user_desktop;
unsigned int ret;