Correctly truncate long applciatons names

HAM integration
This commit is contained in:
uvos 2020-06-30 21:17:57 +02:00
parent fd8c378cd0
commit 217c75e512
10 changed files with 101 additions and 23 deletions

View file

@ -25,6 +25,7 @@ bool DesktopFile::open(const QString& fileName)
name = desktopFile.value("Name").toString();
command = desktopFile.value("Exec").toString();
execName = QFileInfo(command).fileName().split(' ').at(0);
execName.truncate(15);
return true;
}
else
@ -33,7 +34,6 @@ bool DesktopFile::open(const QString& fileName)
return false;
}
}
QList<DesktopFile> DesktopFile::getDesktopFiles(const QList<QByteArray>& desktopFileDirs)
{