Summary: | RFE: configurable history dir to avoid filling up /tmp with unlimited scrollback history | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Nick Leverton <nick> |
Component: | history | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | rdieter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Unspecified | ||
Latest Commit: | http://commits.kde.org/konsole/8b3a05d6889861a463c0a2a1211a6c03fb083af0 | Version Fixed In: | |
Sentry Crash Report: |
Description
Nick Leverton
2008-10-22 12:01:05 UTC
KDE4 uses a link in your home .kde to point to /tmp/. Thanks, I didn't know that. However I would like normal temporary usage to remain in /tmp, only long term persistent ones which can grow unboundedly (like konsole log files) to be movable elsewhere. Debian is changing /tmp to always be a tmpfs as from the next release, which is due in a couple of months. For konsole-4.14, fedora adopted this patch: http://pkgs.fedoraproject.org/cgit/konsole.git/tree/konsole-4.14.1-history_cache_instead_of_tmp.patch to use KStandardDirs::locateLocal("cache",...) instead of KStandardDirs::locateLocal("tmp",...) Latest konsole-15.04.x code uses QDir::tempPath() , I'm considering using QStandardPaths::CacheLocation What I came up with: http://pkgs.fedoraproject.org/cgit/konsole5.git/tree/konsole-15.04.0-history_cache_instead_of_tmp.patch Git commit 8b3a05d6889861a463c0a2a1211a6c03fb083af0 by Rex Dieter. Committed on 14/07/2015 at 19:43. Pushed by rdieter into branch 'master'. Store History in cache instead of tmp Some distros have small /tmp and/or use tmpfs, and large history (esp unlimited scrollback) can potentially fill disk or VM. REVIEW: 123804 M +4 -1 src/History.cpp http://commits.kde.org/konsole/8b3a05d6889861a463c0a2a1211a6c03fb083af0 Git commit a1957e8a8fb6662db4d7095254f9884b6b92229d by Kurt Hindenburg. Committed on 16/08/2015 at 17:32. Pushed by hindenburg into branch 'master'. Allow user to select where the scrollback/history files are written. Currently, when unlimited scrollback is used, the files are stored in /tmp. As noted in the bug report, this can cause issues on some distros. The default is still /tmp but the user can selected to use a location in their $HOME folder (QStandardPaths::CacheLocation). This is somewhat a WIP. Allowing for the changes to take effect immediately appears to be a gigantic mess to get to work. M +2 -0 src/CMakeLists.txt M +18 -2 src/History.cpp M +3 -1 src/HistorySizeWidget.cpp M +6 -0 src/MainWindow.cpp A +42 -0 src/settings/FileLocationSettings.cpp [License: GPL (v2/3)] A +41 -0 src/settings/FileLocationSettings.h [License: GPL (v2/3)] A +166 -0 src/settings/FileLocationSettings.ui M +10 -0 src/settings/konsole.kcfg http://commits.kde.org/konsole/a1957e8a8fb6662db4d7095254f9884b6b92229d IMHO, please don't call the option "scrollbackUseUsersHomeLocation", that's misleading. I'd suggest (something like): scrollbackUseXDGCacheLocation as being more accurate. |