Icon deb#166
Open
jamesmarkchan wants to merge 9 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Ubuntu/Debian packaging and Swing UI updates so the JDiskMark “turtle” branding icon is used more consistently (installer/package icon + app window/taskbar + About dialog).
Changes:
- DEB (jpackage) packaging: add
--iconand custom--resource-dirwith.desktop+postinsttemplates. - DEB-slim (jdeb) packaging: install a pixmap icon and a desktop entry with
Icon=andStartupWMClass=. - Core UI: load a shared branding icon from classpath resources and apply it to the main window and About dialog.
Reviewed changes
Copilot reviewed 8 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| jdm-dist/jdm-deb/src/main/jpackage-resources/template.postinst | Adds post-install template used by jpackage DEB builds. |
| jdm-dist/jdm-deb/src/main/jpackage-resources/template.desktop | Adds desktop-entry template for jpackage DEB builds (includes icon/taskbar metadata). |
| jdm-dist/jdm-deb/pom.xml | Adds jpackage icon/resource-dir and a verify-time DEB desktop patch/repack step. |
| jdm-dist/jdm-deb-slim/src/deb/share/jdiskmark.desktop | Adds a desktop entry for the slim DEB package. |
| jdm-dist/jdm-deb-slim/pom.xml | Installs the icon into /usr/share/pixmaps and the desktop entry into /usr/share/applications. |
| jdm-core/src/main/java/jdiskmark/MainFrame.java | Adds icon to the About dialog. |
| jdm-core/src/main/java/jdiskmark/Gui.java | Sets the window icon image for titlebar/taskbar. |
| jdm-core/src/main/java/jdiskmark/App.java | Introduces AppIcon enum and resource-based icon loading. |
Comments suppressed due to low confidence (1)
jdm-dist/jdm-deb/pom.xml:86
- This sed replacement injects
GenericName,Keywords, andStartupWMClassat theCategories=line, buttemplate.desktopalready containsGenericName,Keywords, andStartupWMClass. As a result, the repacked desktop entry will contain duplicate keys (and potentially conflictingStartupWMClassvalues), which can cause desktop environment parsing/icon matching to behave unpredictably. Either remove this patching step or stop emitting those fields in the template so each key appears exactly once.
if [ -n "$DESKTOP" ]; then
sed -i 's|^Name=jdiskmark$|Name=JDiskMark|' "$DESKTOP"
sed -i 's|^Categories=\(.*\)|GenericName=Disk Benchmark\nCategories=\1\nKeywords=disk;benchmark;performance;storage;speed;\nStartupWMClass=jdiskmark-App|' "$DESKTOP"
echo "[patch] Result ($(basename $DESKTOP)):"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

ubuntu deb support for turtle icon on task bar, app window, about box already present.