probonopd
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
tools/linuxdeployqt/main.cpp
|
|
@ -136,7 +136,8 @@ int main(int argc, char **argv) |
|
|
|
desktopExecEntry = settings->value("Desktop Entry/Exec", "r").toString().split(' ').first().split('/').last().trimmed(); |
|
|
|
qDebug() << "desktopExecEntry:" << desktopExecEntry; |
|
|
|
desktopFile = firstArgument; |
|
|
|
desktopIconEntry = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().split(".",QString::SkipEmptyParts).at(0); |
|
|
|
int lastPoint = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().lastIndexOf("."); |
|
|
|
desktopIconEntry = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().left(lastPoint); |
|
|
|
qDebug() << "desktopIconEntry:" << desktopIconEntry; |
|
|
|
|
|
|
|
QString candidateBin = QDir::cleanPath(QFileInfo(firstArgument).absolutePath() + desktopExecEntry); // Not FHS-like
|
|
|
|