KDECore
kautostart.cpp
Go to the documentation of this file.
207 return QFile::exists(KStandardDirs::locate("autostart", entryName + QString::fromLatin1(".desktop")));
227KAutostart::StartPhase readEntry(const KConfigGroup &group, const char* key, const KAutostart::StartPhase& aDefault)
void removeFromAllowedEnvironments(const QString &environment)
Removes an environment to the list of environments this service may start in.
Definition: kautostart.cpp:301
QStringList allowedEnvironments() const
Returns the list of environments (e.g.
Definition: kautostart.cpp:274
void setStartPhase(StartPhase phase)
Sets the service (by name) this service should be started after.
Definition: kautostart.cpp:251
QString commandToCheck() const
Returns the executable to check for when attempting to autostart this service.
Definition: kautostart.cpp:210
QString visibleName() const
Returns the user-visible name this autostart service is registered as.
Definition: kautostart.cpp:190
StartPhase
Enumerates the various autostart phases that occur during start-up.
Definition: kautostart.h:104
@ BaseDesktop
the essential desktop services such as panels and window managers
Definition: kautostart.h:108
@ DesktopServices
services that should be available before most interactive applications start but that aren't part of ...
Definition: kautostart.h:115
@ Applications
everything else that doesn't belong in the above two categories, including most system tray applicati...
Definition: kautostart.h:121
void setExcludedEnvironments(const QStringList &environments)
Sets the environments this service is not allowed to start in.
Definition: kautostart.cpp:319
void setVisibleName(const QString &entryName)
Sets the user-visible name for this autostart service.
Definition: kautostart.cpp:195
void setAllowedEnvironments(const QStringList &environments)
Sets the environments this service is allowed to start in.
Definition: kautostart.cpp:279
void setCommandToCheck(const QString &exec)
Sets the executable to check for the existence of when autostarting this service.
Definition: kautostart.cpp:215
bool autostarts(const QString &environment=QString(), Conditions check=NoConditions) const
Returns whether or not the service represented by entryName in the autostart system is set to autosta...
Definition: kautostart.cpp:115
StartPhase startPhase() const
Returns the autostart phase this service is started in.
Definition: kautostart.cpp:246
void addToExcludedEnvironments(const QString &environment)
Adds an environment to the list of environments this service may not be autostarted in.
Definition: kautostart.cpp:329
void setAutostarts(bool autostart)
Sets the given exec to start automatically at login.
Definition: kautostart.cpp:104
QString command() const
Returns the associated command for this autostart service.
Definition: kautostart.cpp:175
bool checkAllowedEnvironment(const QString &environment) const
Checks whether autostart is allowed in the given environment, depending on allowedEnvironments() and ...
Definition: kautostart.cpp:160
void removeFromExcludedEnvironments(const QString &environment)
Removes an environment to the list of environments this service may not be autostarted in.
Definition: kautostart.cpp:341
QString startAfter() const
Returns the name of another service that should be autostarted before this one (if that service would...
Definition: kautostart.cpp:354
void setCommand(const QString &command)
Set the associated command for this autostart service.
Definition: kautostart.cpp:180
void addToAllowedEnvironments(const QString &environment)
Adds an environment to the list of environments this service may start in.
Definition: kautostart.cpp:289
QStringList excludedEnvironments() const
Returns the list of environments this service is explicitly not allowed to start in.
Definition: kautostart.cpp:314
static bool isServiceRegistered(const QString &entryName)
Checks whether or not a service by the given name entryName is registered with the autostart system.
Definition: kautostart.cpp:205
KAutostart(const QString &entryName=QString(), QObject *parent=0)
Creates a new KAutostart object that represents the autostart service "entryName".
Definition: kautostart.cpp:75
const KAboutData * aboutData() const
Returns the about data of this component.
Definition: kcomponentdata.cpp:215
KDesktopFile * copyTo(const QString &file) const
Copies all entries from this config object to a new KDesktopFile object that will save itself to file...
Definition: kdesktopfile.cpp:372
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is much like locate.
Definition: kstandarddirs.cpp:2097
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2091
KAutostart::StartPhase readEntry(const KConfigGroup &group, const char *key, const KAutostart::StartPhase &aDefault)
Definition: kautostart.cpp:227
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.