diff --git a/launcher/package/rpm/MultiMC5.spec b/launcher/package/rpm/MultiMC5.spec index 4b7e5002fd..f6cad878d4 100644 --- a/launcher/package/rpm/MultiMC5.spec +++ b/launcher/package/rpm/MultiMC5.spec @@ -26,8 +26,11 @@ A local install wrapper for MultiMC %install mkdir -p %{buildroot}/opt/multimc -install -m 0644 ../ubuntu/multimc/opt/multimc/icon.svg %{buildroot}/opt/multimc/icon.svg install -m 0755 ../ubuntu/multimc/opt/multimc/run.sh %{buildroot}/opt/multimc/run.sh +mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps +install -m 0644 ../ubuntu/multimc/usr/share/icons/hicolor/48x48/apps/multimc.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/multimc.png +mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps +install -m 0644 ../ubuntu/multimc/usr/share/icons/hicolor/scalable/apps/multimc.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/multimc.svg mkdir -p %{buildroot}/%{_datadir}/applications desktop-file-install --dir=%{buildroot}%{_datadir}/applications ../ubuntu/multimc/usr/share/applications/multimc.desktop @@ -41,8 +44,11 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/multimc.metain %files %dir /opt/multimc -/opt/multimc/icon.svg /opt/multimc/run.sh +%dir %{_datadir}/icons/hicolor/48x48/apps +%{_datadir}/icons/hicolor/48x48/apps/multimc.png +%dir %{_datadir}/icons/hicolor/scalable/apps +%{_datadir}/icons/hicolor/scalable/apps/multimc.svg %{_datadir}/applications/multimc.desktop %{_metainfodir}/multimc.metainfo.xml %dir %{_mandir}/man1 diff --git a/launcher/package/ubuntu/multimc/usr/share/applications/multimc.desktop b/launcher/package/ubuntu/multimc/usr/share/applications/multimc.desktop index e0456f896b..c7a58c30a0 100644 --- a/launcher/package/ubuntu/multimc/usr/share/applications/multimc.desktop +++ b/launcher/package/ubuntu/multimc/usr/share/applications/multimc.desktop @@ -1,12 +1,13 @@ [Desktop Entry] Categories=Game; Exec=/opt/multimc/run.sh -Icon=/opt/multimc/icon.svg +Icon=multimc Keywords=game;Minecraft; MimeType= Name=MultiMC 5 Path= StartupNotify=true +StartupWMClass=org.multimc.MultiMC Terminal=false TerminalOptions= Type=Application diff --git a/launcher/package/ubuntu/multimc/usr/share/icons/hicolor/48x48/apps/multimc.png b/launcher/package/ubuntu/multimc/usr/share/icons/hicolor/48x48/apps/multimc.png new file mode 100644 index 0000000000..654fe24d4f Binary files /dev/null and b/launcher/package/ubuntu/multimc/usr/share/icons/hicolor/48x48/apps/multimc.png differ diff --git a/launcher/package/ubuntu/multimc/opt/multimc/icon.svg b/launcher/package/ubuntu/multimc/usr/share/icons/hicolor/scalable/apps/multimc.svg similarity index 100% rename from launcher/package/ubuntu/multimc/opt/multimc/icon.svg rename to launcher/package/ubuntu/multimc/usr/share/icons/hicolor/scalable/apps/multimc.svg