Bug 131930 - Make location of swap directory customizable
Summary: Make location of swap directory customizable
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 1.5.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 01:06 UTC by Dik Takken
Modified: 2011-10-09 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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