Bug 373664 - Unlimited scrollback history should (be able to) go to $XDG_RUNTIME_DIR
Summary: Unlimited scrollback history should (be able to) go to $XDG_RUNTIME_DIR
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: history (show other bugs)
Version: 16.08.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-14 22:20 UTC by Antony Lee
Modified: 2017-05-05 12:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antony Lee 2016-12-14 22:20:37 UTC
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.
Comment 1 Kurt Hindenburg 2017-01-22 17:23:13 UTC
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
Comment 2 Kurt Hindenburg 2017-05-05 12:08:50 UTC
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