[chirp_devel] Patch that updates desktop entry file (Linux)
# HG changeset patch # User Patrik Nilsson asavartzeth@gmail.com # Date 1502892912 -7200 # Wed Aug 16 16:15:12 2017 +0200 # Node ID 49c7636445b4ec7a9ad101ca99b294f3e4ff8bde # Parent c56244c58fe85688ef0da20a3f7bfebc0f447e6c Fix Linux/Unix desktop entry file Fixes #5075 #3491
- Update "Version" to 1.0 - Fix "GenericName" not being generic - Fix "Comment" being redundant with "GenericName" and wrong format - Fix hard-coded icon extension - Fix "Categories" using incorrect non-existing main category "Application", using "Utility" instead. - Add ability to open files with chirpw (based on Debian patch) - Add several "Keywords" for discoverability
Fixing the hard-coded icon enables theming and is a pre-requsite for adding a scalable icon and/or icons of different sizes. It should also resolve bug #3491.
The latest version of the Freedesktop specification can be found at: https://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-late...
A table of acceptable main categories can be found at: https://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-regi...
diff -r c56244c58fe8 -r 49c7636445b4 share/chirp.desktop --- a/share/chirp.desktop Mon Jul 10 17:45:50 2017 -0400 +++ b/share/chirp.desktop Wed Aug 16 16:15:12 2017 +0200 @@ -1,13 +1,13 @@ [Desktop Entry] -Version=0.1 -Encoding=UTF-8 Type=Application -Exec=chirpw -Icon=chirp.png +Version=1.0 +Name=CHIRP +GenericName=Radio Programming Tool +Comment=Program amateur radios +Icon=chirp +Exec=chirpw %F +Terminal=false +MimeType=inode/directory +Categories=Utility;HamRadio +Keywords=Hamradio;Programming;Handheld;Radio;Amateur;Programmer StartupNotify=true -Terminal=false -Categories=Application;HamRadio -MimeType=inode/directory -Name=CHIRP -Comment=CHIRP Radio Programming Tool -GenericName=CHIRP Radio Programming Tool
# HG changeset patch # User Patrik Nilsson asavartzeth@gmail.com # Date 1502892912 -7200 # Wed Aug 16 16:15:12 2017 +0200 # Node ID 49c7636445b4ec7a9ad101ca99b294f3e4ff8bde # Parent c56244c58fe85688ef0da20a3f7bfebc0f447e6c Fix Linux/Unix desktop entry file Fixes #5075 #3491
I applied this, but I figure it's probably not worth doing a build just for this, especially since most of the (windows and mac) users are unaffected. Is that okay?
It'll go out as part of the next one as triggered by a functional patch.
--Dan
That is completely fine with me.
On Fri, Aug 18, 2017 at 3:51 PM, Dan Smith via chirp_devel chirp_devel@intrepid.danplanet.com wrote:
# HG changeset patch # User Patrik Nilsson asavartzeth@gmail.com # Date 1502892912 -7200 # Wed Aug 16 16:15:12 2017 +0200 # Node ID 49c7636445b4ec7a9ad101ca99b294f3e4ff8bde # Parent c56244c58fe85688ef0da20a3f7bfebc0f447e6c Fix Linux/Unix desktop entry file Fixes #5075 #3491
I applied this, but I figure it's probably not worth doing a build just for this, especially since most of the (windows and mac) users are unaffected. Is that okay?
It'll go out as part of the next one as triggered by a functional patch.
--Dan _______________________________________________ chirp_devel mailing list chirp_devel@intrepid.danplanet.com http://intrepid.danplanet.com/mailman/listinfo/chirp_devel Developer docs: http://chirp.danplanet.com/projects/chirp/wiki/Developers
participants (2)
-
Dan Smith
-
Patrik Nilsson