[Konsole-devel] Review Request 125716: Use QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) instead of QDir::tempPath()

Xuetian Weng wengxt at gmail.com
Tue Oct 20 20:40:07 UTC 2015



> On Oct. 20, 2015, 2:29 p.m., Kurt Hindenburg wrote:
> > I'll have to look at this more
> > 
> > Returns a directory location where runtime communication files should be written, like Unix local sockets. This is a generic value. The returned path may be empty on some systems.
> > 
> > 
> > "/run/user/<USER>", "~/Library/Application Support",	"C:/Users/<USER>"

Emm.. ok, didn't know that runtime location are persistent on other platforms. Probably make Qt's TempLocation to make use of XDG_RUNTIME_DIR would be a better solution.


- Xuetian


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125716/#review87143
-----------------------------------------------------------


On Oct. 20, 2015, 4:21 a.m., Xuetian Weng wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125716/
> -----------------------------------------------------------
> 
> (Updated Oct. 20, 2015, 4:21 a.m.)
> 
> 
> Review request for Konsole and Kurt Hindenburg.
> 
> 
> Repository: konsole
> 
> 
> Description
> -------
> 
> QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation) can make use of XDG_RUNTIME_DIR, which is a more restricted place that only visible to current user.
> 
> 
> Diffs
> -----
> 
>   src/History.cpp d00b95a 
>   src/settings/FileLocationSettings.cpp aab62c2 
> 
> Diff: https://git.reviewboard.kde.org/r/125716/diff/
> 
> 
> Testing
> -------
> 
> XDG_RUNTIME_DIR is now being used.
> 
> 
> Thanks,
> 
> Xuetian Weng
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20151020/343f62d0/attachment.html>


More information about the konsole-devel mailing list