Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the icon of .desktop file so it can be themed #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

TechniKris
Copy link

@TechniKris TechniKris commented Oct 22, 2024

Currently the MultiMC icon is placed in /opt/multimc/, and the .desktop file points to it directly.
Because of that icon themes are unable to theme MMC, making it stand out in the application launcher.
This PR moves the icon over to /usr/share/icons/hicolor/scalable/apps/ /usr/share/pixmaps/ and a patch is applied to the .desktop file to point to multimc icon. This way, if a user wishes to use a theme including an icon for MMC, the theme will be picked up; otherwise it'll fall back to the bundled icon.

@peterix
Copy link
Member

peterix commented Dec 22, 2024

Neat. Maybe I should apply this to the debian package and then we don't have to do it here.

@TechniKris
Copy link
Author

TechniKris commented Dec 22, 2024

That'd probably be ideal, I thought patching the PKGBUILD would be the simplest way 😅; although I guess the PKGBUILD would still need to be adjusted after the .deb update.

Also, since I made this PR I realized the /usr/share/icons/ path actually depends on a variable $XDG_DATA_DIRS (as per https://specifications.freedesktop.org/icon-theme-spec/latest/#directory_layout ) and I'm not entirely confident about handling envvars; so I updated it to /usr/share/pixmaps/ which seems to be static. Feel free to use whichever one you'd like though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants