Browse Source

Update main.cpp

master
probonopd 6 years ago
committed by GitHub
parent
commit
4f449c161d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/linuxdeployqt/main.cpp

3
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

Loading…
Cancel
Save