MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / desktopFile

Function desktopFile

src/service/runatsystemstart.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8{
9#ifdef Q_OS_LINUX
10QString desktopFile()
11{
12 auto name = QCoreApplication::applicationName().toLower();
13 name.remove(QLatin1Char(' '));
14 const auto result = QDir::homePath() + QLatin1String("/.config/autostart/") +
15 name + QLatin1String(".desktop");
16 return result;
17}
18
19bool RunAtSystemStart::isAvailable()
20{

Callers 2

isEnabledMethod · 0.85
setEnabledMethod · 0.85

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected