Bug 131930

Summary: Make location of swap directory customizable
Product: [Applications] krita Reporter: Dik Takken <kde>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 1.5.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dik Takken 2006-08-06 01:06:47 UTC
Version:           1.5.1 (using KDE KDE 3.5.3)
OS:                Linux

Krita always dumps its swap data in /tmp/kde-$USER, but that might not always be the place where the most free diskspace is. Please allow the user to select a different swap directory.
Comment 1 Stefan Mueller 2006-12-31 11:52:14 UTC
also the option to delete all swaps. 

(thats not krita-specific) Every time i dig into temp dirs there are old files in it, and I really don't know if I could just rm them save.
Comment 2 Halla Rempt 2011-10-09 14:37:08 UTC
Git commit d242cbc6a27a5092492797c47c4d69d8e6419ba5 by Boudewijn Rempt.
Committed on 09/10/2011 at 15:47.
Pushed by rempt into branch 'master'.

Make the location of the swapfile configurable

I do not intend to expose this from the settings gui, it's too advanced
for that. Advanced users can use the "swaplocation" entry in kritarc
to move the swapfiles out of the temp dir.

For the swapfile, we now use KTemporaryFile instead of QTemporaryFile
since we're still a KDE application.

BUG:131930

M  +5    -0    krita/image/kis_image_config.cpp
M  +6    -0    krita/image/kis_image_config.h
M  +13   -10   krita/image/tiles3/swap/kis_memory_window.cpp
M  +7    -3    krita/image/tiles3/swap/kis_memory_window.h
M  +1    -1    krita/image/tiles3/swap/kis_swapped_data_store.cpp

http://commits.kde.org/calligra/d242cbc6a27a5092492797c47c4d69d8e6419ba5