Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/utility_unix.cpp')
-rw-r--r--src/common/utility_unix.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/common/utility_unix.cpp b/src/common/utility_unix.cpp
index 010408395..087254e60 100644
--- a/src/common/utility_unix.cpp
+++ b/src/common/utility_unix.cpp
@@ -80,17 +80,17 @@ void setLaunchOnStartup_private(const QString &appName, const QString &guiName,
QTextStream ts(&iniFile);
ts.setCodec("UTF-8");
- ts << QLatin1String("[Desktop Entry]") << endl
- << QLatin1String("Name=") << guiName << endl
- << QLatin1String("GenericName=") << QLatin1String("File Synchronizer") << endl
- << QLatin1String("Exec=\"") << executablePath << "\" --background" << endl
- << QLatin1String("Terminal=") << "false" << endl
- << QLatin1String("Icon=") << APPLICATION_ICON_NAME << endl
- << QLatin1String("Categories=") << QLatin1String("Network") << endl
- << QLatin1String("Type=") << QLatin1String("Application") << endl
- << QLatin1String("StartupNotify=") << "false" << endl
- << QLatin1String("X-GNOME-Autostart-enabled=") << "true" << endl
- << QLatin1String("X-GNOME-Autostart-Delay=10") << endl;
+ ts << QLatin1String("[Desktop Entry]\n")
+ << QLatin1String("Name=") << guiName << QLatin1Char('\n')
+ << QLatin1String("GenericName=") << QLatin1String("File Synchronizer\n")
+ << QLatin1String("Exec=\"") << executablePath << "\" --background\n"
+ << QLatin1String("Terminal=") << "false\n"
+ << QLatin1String("Icon=") << APPLICATION_ICON_NAME << QLatin1Char('\n')
+ << QLatin1String("Categories=") << QLatin1String("Network\n")
+ << QLatin1String("Type=") << QLatin1String("Application\n")
+ << QLatin1String("StartupNotify=") << "false\n"
+ << QLatin1String("X-GNOME-Autostart-enabled=") << "true\n"
+ << QLatin1String("X-GNOME-Autostart-Delay=10") << Qt::endl;
} else {
if (!QFile::remove(desktopFileLocation)) {
qCWarning(lcUtility) << "Could not remove autostart desktop file";