Currently, konsole offers /tmp and ~/.cache/konsole as possibilities for the scrollback file location. It would seem that the normal place to put these is $XDG_RUNTIME_DIR instead (i.e. /run/user/$UID), which is semantically correct, allows per-user segregation, and is usually mounted as tmpfs.
It looks like that would convert to QStandardPaths::RuntimeLocation - typically we want to use Qt. At one time, I thought of allow the user to enter a path. http://doc.qt.io/qt-5/qstandardpaths.html
Git commit ab75e68b1122d03a189af1d199ee8a0fc7fefa29 by Kurt Hindenburg. Committed on 05/05/2017 at 12:06. Pushed by hindenburg into branch 'master'. Allow user to enter location to store Konsole's scrollback files Add a third option which allows the user to enter any folder to store the scrollback files. Differential Revision: https://phabricator.kde.org/D5575 M +9 -2 src/History.cpp M +1 -0 src/settings/FileLocationSettings.cpp M +46 -0 src/settings/FileLocationSettings.ui M +8 -0 src/settings/konsole.kcfg https://commits.kde.org/konsole/ab75e68b1122d03a189af1d199ee8a0fc7fefa29