summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-05 08:06:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 10:42:32 -0700
commit974ba1382dec543af0bab14c907e4f2012c27c05 (patch)
tree0d00ae57b169a8d3ceebc45420d955b1a4e69713 /linux.c
parent4b12f28ca453b038fdeca8e6ada106e0c157296b (diff)
downloadsubsurface-974ba1382dec543af0bab14c907e4f2012c27c05.tar.gz
Make Linux compile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux.c b/linux.c
index 21cc10822..070a091fe 100644
--- a/linux.c
+++ b/linux.c
@@ -30,8 +30,8 @@ const char *system_default_filename(void)
char *buffer;
int len;
- home = g_get_home_dir();
- user = g_get_user_name();
+ home = getenv("HOME");
+ user = getenv("LOGNAME");
len = strlen(home) + strlen(user) + 17;
buffer = malloc(len);
snprintf(buffer, len, "%s/subsurface/%s.xml", home, user);
@@ -49,17 +49,17 @@ const char *subsurface_gettext_domainpath(char *argv0)
}
}
-void subsurface_command_line_init(gint *argc, gchar ***argv)
+void subsurface_command_line_init(int *argc, char ***argv)
{
/* this is a no-op */
}
-void subsurface_command_line_exit(gint *argc, gchar ***argv)
+void subsurface_command_line_exit(int *argc, char ***argv)
{
/* this is a no-op */
}
-gboolean subsurface_os_feature_available(os_feature_t f)
+bool subsurface_os_feature_available(os_feature_t f)
{
return TRUE;
}