diff options
Diffstat (limited to 'tikzit/src/gtk/MainWindow.m')
-rw-r--r-- | tikzit/src/gtk/MainWindow.m | 4 |
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]]; } |