File indexing completed on 2024-11-10 04:55:32

0001 /*
0002     SPDX-FileCopyrightText: 2018 Roman Gilg <subdiff@gmail.com>
0003     SPDX-FileCopyrightText: 2021 David Redondo <kde@david-redondo.de>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 #include "globals.h"
0008 
0009 #include <QStandardPaths>
0010 #include <QStringBuilder>
0011 
0012 namespace Globals
0013 {
0014 
0015 QString dirPath()
0016 {
0017     return QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) % QStringLiteral("/kscreen/");
0018 }
0019 
0020 QString findFile(const QString &filePath)
0021 {
0022     return QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kscreen/") % filePath);
0023 }
0024 }