Opened 9 years ago
Closed 9 years ago
#2777 closed enhancement (fixed)
Drop menu file in favor of desktop file
Reported by: | Bas Couwenberg | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.3 |
Component: | Installation | Version: | svn-trunk |
Keywords: | Cc: | sebastic@… | |
CPU: | All | Platform: | Linux |
Description
The menu files are no longer required for the Debian packages since CTTE #741573 - Debian Menu System which advised:
In addition to those changes, the Technical Committee resolves that packages providing a .desktop file shall not also provide a menu file for the same application.
In the attached patch the menu file and its associated XPM icon are removed, leaving the desktop file and its associated PNG icons in its place.
The PNG icons are installed in the hicolor theme following the Icon Theme Specification:
So, you're an application author, and want to install application icons so that they work in the KDE and Gnome menus. Minimally you should install a 48x48 icon in the hicolor theme. This means installing a PNG file in $prefix/share/icons/hicolor/48x48/apps. Optionally you can install icons in different sizes. For example, installing a svg icon in $prefix/share/icons/hicolor/scalable/apps means most desktops will have one icon that works for all sizes. You might even want to install icons with a look that matches other well known themes so your application will fit in with some specific desktop environment.
The SVG icon (grasslogo_vector.svg) is also installed to have an icon for all size besides 48x48 & 64x64.
Attachments (2)
Change History (11)
by , 9 years ago
Attachment: | ctte-741573.patch added |
---|
comment:1 by , 9 years ago
follow-up: 3 comment:2 by , 9 years ago
Component: | Packaging → Installation |
---|
This didn't make it into 7.0.2RC2, can we get it into RC3 or 7.0.2 final?
comment:3 by , 9 years ago
Replying to sebastic:
This didn't make it into 7.0.2RC2, can we get it into RC3 or 7.0.2 final?
Is it generic or Debian specific? We also support Fedora, Gentoo, other (Linux and non) distros.
From the provided patch I am not able to judge that.
comment:4 by , 9 years ago
It's generic, it applies to all systems implementing the Freedesktop.org standards.
Because GRASS now installs the hicolor icons, the distribution packaging can use that instead of its own.
Only dropping the menu files and its associated xpm icon is Debian specific. This just makes the Freedesktop.org standards more important.
by , 9 years ago
Attachment: | desktop.patch added |
---|
comment:5 by , 9 years ago
Because ctte-741573.patch
installs the icons as grass70.{png,svg}
the Icon
field in the desktop file also needs to changed to grass70
as done in desktop.patch
.
comment:6 by , 9 years ago
Milestone: | 7.0.2 → 7.0.3 |
---|
comment:7 by , 9 years ago
follow-up: 9 comment:8 by , 9 years ago
comment:9 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
To make use of the changes in
ctte-741573.patch
in the grass Debian packaging on Launchpad, have a look at the packaging changes in the Use desktop file in favor of menu file per CTTE #741573. commit in the Debian GIS git repository.