Changed: Use PNG icons under Linux, see #279

--HG--
branch : develop
This commit is contained in:
kervala 2016-07-26 18:22:18 +02:00
parent e5db49b990
commit 30aa93d55a
2 changed files with 7 additions and 2 deletions

View file

@ -97,9 +97,11 @@ void CProfile::createShortcuts() const
QString icon;
#ifdef Q_OS_WIN32
// under Windows, icon is included in executable
icon = executable;
#else
// TODO: Linux icon
// icon is in the same directory as client
icon = s.getDirectory() + "/ryzom_client.png";
#endif
if (desktopShortcut)

View file

@ -718,6 +718,7 @@ void COperationDialog::copyInstaller()
QStringList filter;
filter << "msvcp100.dll";
filter << "msvcr100.dll";
filter << "ryzom_installer.png";
CFilesCopier copier(this);
copier.setIncludeFilter(filter);
@ -756,9 +757,11 @@ void COperationDialog::copyInstaller()
QString icon;
#ifdef Q_OS_WIN32
// under Windows, icon is included in executable
icon = executable;
#else
// TODO: Linux icon
// icon is in the same directory as installer
icon = config->getInstallationDirectory() + "/ryzom_installer.png";
#endif
createLink(shortcut, name, executable, "", icon, "");