Browse Source

Allow for icon file names with dots, such as org.olivevideoeditor.Olive.png

https://github.com/olive-editor/olive/issues/159
master
probonopd 6 years ago
committed by GitHub
parent
commit
2633eb943b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/linuxdeployqt/main.cpp

2
tools/linuxdeployqt/main.cpp

@ -136,7 +136,7 @@ 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('.').first().trimmed();
desktopIconEntry = settings->value("Desktop Entry/Icon", "r").toString().split(' ').first().split(".",QString::SkipEmptyParts).at(0);
qDebug() << "desktopIconEntry:" << desktopIconEntry;
QString candidateBin = QDir::cleanPath(QFileInfo(firstArgument).absolutePath() + desktopExecEntry); // Not FHS-like

Loading…
Cancel
Save