diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-05 08:06:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 10:42:32 -0700 |
commit | 974ba1382dec543af0bab14c907e4f2012c27c05 (patch) | |
tree | 0d00ae57b169a8d3ceebc45420d955b1a4e69713 | |
parent | 4b12f28ca453b038fdeca8e6ada106e0c157296b (diff) | |
download | subsurface-974ba1382dec543af0bab14c907e4f2012c27c05.tar.gz |
Make Linux compile
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | linux.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |