summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/MainWindow.m
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-08 17:36:48 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-08 17:36:48 +0000
commitd26e56e2fd57da2dadddf760b2984956f7daa069 (patch)
tree279ce688dc97b4a261e8c24af106e26b33b60a25 /tikzit/src/gtk/MainWindow.m
parent2ce4b8a878459ed8c4b9f3077b9c8f924c2a04e4 (diff)
GTK: fix creating the user support dir
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@418 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/gtk/MainWindow.m')
-rw-r--r--tikzit/src/gtk/MainWindow.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/tikzit/src/gtk/MainWindow.m b/tikzit/src/gtk/MainWindow.m
index c391ea5..6506125 100644
--- a/tikzit/src/gtk/MainWindow.m
+++ b/tikzit/src/gtk/MainWindow.m
@@ -45,6 +45,8 @@
#import "TikzDocument.h"
#import "WidgetSurface.h"
+#import "stat.h"
+
// {{{ Internal interfaces
// {{{ Clipboard support
@@ -462,7 +464,7 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc
if (preambles != nil) {
NSString *preamblesDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"preambles"];
// NSFileManager is slightly dodgy on Windows
- g_mkdir_with_parents ([preamblesDir UTF8String], 700);
+ g_mkdir_with_parents ([preamblesDir UTF8String], S_IRUSR | S_IWUSR | S_IXUSR);
[preambles storeToDirectory:preamblesDir];
[configFile setStringEntry:@"selectedPreamble" inGroup:@"Preambles" value:[preambles selectedPreambleName]];
}