Plasma-workspace

autostartscriptdesktopfile.h
1/*
2 SPDX-FileCopyrightText: 2021 Henri Chain <henri.chain@enioka.com>
3 SPDX-License-Identifier: LGPL-2.1-or-later
4*/
5
6#pragma once
7#include "kworkspace_export.h"
8
9#include <KDesktopFile>
10#include <QDir>
11#include <QString>
12
13/**
14 * Corresponds to a .desktop file in $XDG_CONFIG_HOME/autostart that points to
15 * an autostart script and has X-KDE-AutostartScript=true
16 */
17class KWORKSPACE_EXPORT AutostartScriptDesktopFile : public KDesktopFile
18{
19public:
20 explicit AutostartScriptDesktopFile(const QString &name, const QString &execPath, const QString &iconName);
21
22 /**
23 * Checks whether this KDesktopFile has X-KDE-AutostartScript=true
24 */
25 static bool isAutostartScript(const KDesktopFile &file);
26
27 /**
28 * The location of autostart .desktop application and script files
29 * ($XDG_CONFIG_HOME/autostart)
30 */
31 static QDir autostartLocation();
32};
Corresponds to a .desktop file in $XDG_CONFIG_HOME/autostart that points to an autostart script and h...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 12:00:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.