AutostartScriptDesktopFile

Search for usage in LXR

AutostartScriptDesktopFile Class Reference

#include <autostartscriptdesktopfile.h>

Inheritance diagram for AutostartScriptDesktopFile:

Public Member Functions

 AutostartScriptDesktopFile (const QString &name, const QString &execPath)
 
- Public Member Functions inherited from KDesktopFile
 KDesktopFile (const QString &fileName)
 
 KDesktopFile (QStandardPaths::StandardLocation resourceType, const QString &fileName)
 
KConfigGroup actionGroup (const QString &group)
 
KDesktopFilecopyTo (const QString &file) const
 
KConfigGroup desktopGroup () const
 
QString fileName () const
 
bool hasActionGroup (const QString &group) const
 
bool hasApplicationType () const
 
bool hasDeviceType () const
 
bool hasLinkType () const
 
bool noDisplay () const
 
QStringList readActions () const
 
QString readComment () const
 
QString readDevice () const
 
QString readDocPath () const
 
QString readGenericName () const
 
QString readIcon () const
 
QStringList readMimeTypes () const
 
QString readName () const
 
QString readPath () const
 
QString readType () const
 
QString readUrl () const
 
QStandardPaths::StandardLocation resource () const
 
QStringList sortOrder () const
 
bool tryExec () const
 
- Public Member Functions inherited from KConfig
 KConfig (const QString &file, const QString &backend, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
 
 KConfig (const QString &file=QString(), OpenFlags mode=FullConfig, QStandardPaths::StandardLocation type=QStandardPaths::GenericConfigLocation)
 
AccessMode accessMode () const override
 
AccessMode accessMode () const override
 
void addConfigSources (const QStringList &sources)
 
void addConfigSources (const QStringList &sources)
 
QStringList additionalConfigSources () const
 
QStringList additionalConfigSources () const
 
void checkUpdate (const QString &id, const QString &updateFile)
 
KConfigcopyTo (const QString &file, KConfig *config=nullptr) const
 
QMap< QString, QStringentryMap (const QString &aGroup=QString()) const
 
bool forceGlobal () const
 
bool forceGlobal () const
 
QStringList groupList () const override
 
bool isConfigWritable (bool warnUser)
 
bool isConfigWritable (bool warnUser)
 
bool isDirty () const
 
bool isImmutable () const override
 
bool isImmutable () const override
 
QString locale () const
 
QString locale () const
 
QStandardPaths::StandardLocation locationType () const
 
void markAsClean () override
 
QString name () const
 
OpenFlags openFlags () const
 
bool readDefaults () const
 
bool readDefaults () const
 
void reparseConfiguration ()
 
void setForceGlobal (bool force)
 
void setForceGlobal (bool force)
 
bool setLocale (const QString &aLocale)
 
bool setLocale (const QString &aLocale)
 
void setReadDefaults (bool b)
 
void setReadDefaults (bool b)
 
bool sync () override
 
- Public Member Functions inherited from KConfigBase
void deleteGroup (const char *group, WriteConfigFlags flags=Normal)
 
void deleteGroup (const QByteArray &group, WriteConfigFlags flags=Normal)
 
void deleteGroup (const QString &group, WriteConfigFlags flags=Normal)
 
KConfigGroup group (const char *group)
 
const KConfigGroup group (const char *group) const
 
KConfigGroup group (const QByteArray &group)
 
const KConfigGroup group (const QByteArray &group) const
 
KConfigGroup group (const QString &group)
 
const KConfigGroup group (const QString &group) const
 
bool hasGroup (const char *group) const
 
bool hasGroup (const QByteArray &group) const
 
bool hasGroup (const QString &group) const
 
bool isGroupImmutable (const char *group) const
 
bool isGroupImmutable (const QByteArray &group) const
 
bool isGroupImmutable (const QString &group) const
 

Static Public Member Functions

static QDir autostartLocation ()
 
static bool isAutostartScript (const KDesktopFile &file)
 
- Static Public Member Functions inherited from KDesktopFile
static bool isAuthorizedDesktopFile (const QString &path)
 
static bool isDesktopFile (const QString &path)
 
static QString locateLocal (const QString &path)
 
- Static Public Member Functions inherited from KConfig
static QString mainConfigName ()
 
static void setMainConfigName (const QString &str)
 

Additional Inherited Members

- Public Types inherited from KConfig
enum  OpenFlag
 
typedef QFlags< OpenFlagOpenFlags
 
- Public Types inherited from KConfigBase
enum  AccessMode
 
enum  WriteConfigFlag
 
typedef QFlags< WriteConfigFlagWriteConfigFlags
 
- Public Attributes inherited from KConfig
 CascadeConfig
 
 FullConfig
 
 IncludeGlobals
 
 NoCascade
 
 NoGlobals
 
 SimpleConfig
 
- Public Attributes inherited from KConfigBase
 Global
 
 Localized
 
 Normal
 
 Notify
 
 Persistent
 
- Protected Member Functions inherited from KConfig
void deleteGroupImpl (const QByteArray &group, WriteConfigFlags flags=Normal) override
 
const KConfigGroup groupImpl (const QByteArray &b) const override
 
KConfigGroup groupImpl (const QByteArray &b) override
 
bool hasGroupImpl (const QByteArray &group) const override
 
bool isGroupImmutableImpl (const QByteArray &aGroup) const override
 
void virtual_hook (int id, void *data) override
 

Detailed Description

Corresponds to a .desktop file in $XDG_CONFIG_HOME/autostart that points to an autostart script and has X-KDE-AutostartScript=true.

Definition at line 17 of file autostartscriptdesktopfile.h.

Member Function Documentation

◆ autostartLocation()

QDir AutostartScriptDesktopFile::autostartLocation ( )
static

The location of autostart .desktop application and script files ($XDG_CONFIG_HOME/autostart)

Definition at line 12 of file autostartscriptdesktopfile.cpp.

◆ isAutostartScript()

bool AutostartScriptDesktopFile::isAutostartScript ( const KDesktopFile file)
static

Checks whether this KDesktopFile has X-KDE-AutostartScript=true.

Definition at line 29 of file autostartscriptdesktopfile.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Tue Dec 6 2022 03:50:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.