Browse Source

Update main.cpp

master
probonopd 6 years ago
committed by GitHub
parent
commit
e26b003a43
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,8 +136,7 @@ int main(int argc, char **argv)
desktopExecEntry = settings->value("Desktop Entry/Exec", "r").toString().split(' ').first().split('/').last().trimmed(); desktopExecEntry = settings->value("Desktop Entry/Exec", "r").toString().split(' ').first().split('/').last().trimmed();
qDebug() << "desktopExecEntry:" << desktopExecEntry; qDebug() << "desktopExecEntry:" << desktopExecEntry;
desktopFile = firstArgument; desktopFile = firstArgument;
int lastPoint = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().lastIndexOf("."); desktopIconEntry = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first();
desktopIconEntry = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().left(lastPoint);
qDebug() << "desktopIconEntry:" << desktopIconEntry; qDebug() << "desktopIconEntry:" << desktopIconEntry;
QString candidateBin = QDir::cleanPath(QFileInfo(firstArgument).absolutePath() + desktopExecEntry); // Not FHS-like QString candidateBin = QDir::cleanPath(QFileInfo(firstArgument).absolutePath() + desktopExecEntry); // Not FHS-like

Loading…
Cancel
Save