Refactor and fix icon locations #27
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
applications/ms-office-online-launcher!27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "unknown repository"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: jonathonf
This refactors out the duplicated desktop launchers, replacing them with a template which is used by the Makefile to generate a launcher for each application.
It also fixes the default icon installation location to remove the implicit dependency on
hicolor-icon-themeand place them in the default icon search path.Packagers could use e.g. imagemagick to rescale the 1024x1024 icon and install smaller icons into the appropriate hicolor icon locations.
Created by: eli-schwartz
Note that "hicolor-icon-theme" just creates some directories, but the underlying DE machinery which handles desktop files should handle icon detection just fine regardless, while hardcoding the path means said machinery will be unable to implement the Icon Theme Specification as described in: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#key-icon
If you're not going to install it as part of the hicolor theme, you should use
/usr/share/pixmaps/at least, which still allows non-hardcoded paths and uses pixmaps only as a fallback if there is no themed version (which I guess there will not be by default).Created by: philmmanjaro
@eli-schwartz: not needed. I had the problem not having any icon at all. With @jonathonf solution, which we also used in the past it works. When an icon set has the needed icons, their icons now get used, otherwise our shipped icons kick in.
Created by: jonathonf
I'd normally put icons in
/usr/share/pixmapsbut I may have misread https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout and thought that$XDG_DATA_DIRS/icons(which includes/usr/share/icons) was the "correct" place. I don't think it makes any practical difference, so/usr/share/pixmapssounds like the better place to put a single icon size.Edit: opened https://github.com/manjaro/ms-office-online-launcher/pull/5.