Merge pull request #527 from PhenomRetroShare/Fix_DesktopFileName

Fix Desktop Filename for option page message.
This commit is contained in:
Cyril Soler 2016-10-08 13:38:18 +02:00 committed by GitHub
commit 9ed759d0db

View File

@ -789,7 +789,10 @@ bool RshareSettings::getRetroShareProtocol()
}
}
#elif defined(Q_OS_LINUX)
QFile desktop("/usr/share/applications/RetroShare06.desktop");
QFile desktop("/usr/share/applications/retroshare06.desktop");
if (!desktop.exists()) {
desktop.setFileName("/usr/share/applications/RetroShare06.desktop");
}
if (desktop.exists()) {
desktop.open(QIODevice::ReadOnly | QIODevice::Text);
QTextStream in(&desktop);