diff options
author | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-08 15:59:43 +0000 |
---|---|---|
committer | randomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64> | 2012-01-08 15:59:43 +0000 |
commit | 04c737bcffd1ed1f16b33c2a4199497c881c8502 (patch) | |
tree | 0e114831cebb45cc282776badb87c5f534f25f9a /src/linux | |
parent | 14a4000aa9056d2fdc69c2dc925bc9a4203d068b (diff) |
GTK: Use glib for directory creation.
NSFileManager's createDirectory methods do not appear to work properly on Windows.
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@358 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/MainWindow.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/MainWindow.m b/src/linux/MainWindow.m index 4857cc4..c68c9e8 100644 --- a/src/linux/MainWindow.m +++ b/src/linux/MainWindow.m @@ -442,7 +442,8 @@ static void update_paste_action (GtkClipboard *clipboard, GdkEvent *event, GtkAc if (preambles != nil) { NSString *preamblesDir = [[SupportDir userSupportDir] stringByAppendingPathComponent:@"preambles"]; - [[NSFileManager defaultManager] createDirectoryAtPath:preamblesDir withIntermediateDirectories:YES attributes:nil error:NULL]; + // NSFileManager is slightly dodgy on Windows + g_mkdir_with_parents ([preamblesDir UTF8String], 700); [preambles storeToDirectory:preamblesDir]; [configFile setStringEntry:@"selectedPreamble" inGroup:@"Preambles" value:[preambles selectedPreambleName]]; } |