Commit 3c23c2b9 authored by Leonard Janis Robert König's avatar Leonard Janis Robert König Committed by Albert Astals Cid
Browse files

Honor XDG_DATA_HOME for logfiles

Qt provides an API for querying XDG_DATA_HOME and falling back to
the previous .local/share/konversation directory

XDG Spec:
Qt Doc:
parent 2396506c
......@@ -710,7 +710,7 @@
<group name="Path Settings">
<entry key="LogfilePath" type="Url">
<default code="true">QUrl::fromLocalFile((KUser(KUser::UseRealUserID).homeDir()+QLatin1String("/.local/share/konversation/logs")))</default>
<default code="true">QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)+QLatin1String("/logs"))</default>
<entry key="DccPath" type="Url">
<default code="true">QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation))</default>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment