Improve content of autostart file

This commit is contained in:
lupoDharkael
2018-02-22 16:39:46 +01:00
parent 423bf5929f
commit 5461b27f0e

View File

@@ -202,7 +202,10 @@ void ConfigHandler::setStartupLaunch(const bool start) {
QFile file(path);
if (start) {
if (file.open(QIODevice::WriteOnly)) {
file.write("[Desktop Entry]\nIcon=system-run\nExec=flameshot\nTerminal=false");
QByteArray data("[Desktop Entry]\nEncoding=UTF-8\nName=flameshot"
"\nIcon=flameshot\nExec=flameshot\nTerminal=false"
"\nType=Application\nX-GNOME-Autostart-enabled=true\n");
file.write(data);
}
} else {
file.remove();