summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2cddfc9)
raw | patch | inline | side by side (parent: 2cddfc9)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 29 May 2009 04:54:27 +0000 (04:54 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 29 May 2009 04:54:27 +0000 (04:54 +0000) |
src/inkscape.cpp | patch | blob | history |
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 6fe15a11adf588f7e822126add9ed5c594aecd3a..f1e2c1684c47554eb38a29d1f53efdb8adc1463f 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
static void (* abrt_handler) (int) = SIG_DFL;
static void (* fpe_handler) (int) = SIG_DFL;
static void (* ill_handler) (int) = SIG_DFL;
+#ifndef WIN32
static void (* bus_handler) (int) = SIG_DFL;
+#endif
#define INKSCAPE_PROFILE_DIR "inkscape"
#define INKSCAPE_PROFILE_DIR_047DEV "Inkscape"
inkscape_load_menus(inkscape);
sp_input_load_from_preferences();
-
+
/* set language for user interface according setting in preferences */
Glib::ustring ui_language = prefs->getString("/ui/language");
if(!ui_language.empty())
g_free(dev47Dir);
dev47Dir = 0;
// In case the XDG user config dir of the moment does not yet exist...
- if ( g_mkdir_with_parents(prefdir, S_IRWXU | S_IRGRP | S_IXGRP | S_IXOTH) == -1 ) {
+ int mode = S_IRWXU;
+#ifdef S_IRGRP
+ mode |= S_IRGRP;
+#endif
+#ifdef S_IXGRP
+ mode |= S_IXGRP;
+#endif
+#ifdef S_IXOTH
+ mode |= S_IXOTH;
+#endif
+ if ( g_mkdir_with_parents(prefdir, mode) == -1 ) {
int problem = errno;
g_warning("Unable to create profile directory (%s) (%d)", g_strerror(problem), problem);
}