On Friday 04 April 2014 23:40:35 Dmitriy Perlow wrote:
Shawn W Dunn
Fri, 04 Apr 2014 08:05:19 +0300: So in devel:cloverleaf:lxqt/compton, I have compton branched from X11:QtDesktop
As it's been sitting, they have just been deleting the compton.desktop file in %install, as it was kicking this error:
# desktop file is broken: #[ 11s] ERROR: No sufficient Category definition:
/home/abuild/rpmbuild/BUILDROOT/compton-0.1.0-0.x86_64//usr/share/applicat
ions/compton.desktop #[ 11s] ERROR: Icon file not installed:
/home/abuild/rpmbuild/BUILDROOT/compton-0.1.0-0.x86_64//usr/share/applicat
ions/compton.desktop (xcompmgr) #[ 11s] WARNING: Empty GenericName:
/home/abuild/rpmbuild/BUILDROOT/compton-0.1.0-0.x86_64//usr/share/applicat
ions/compton.desktop
More as an exercise to better understand the .desktop files, I went in, and tried to fix it.
I patched the source with a fresh desktop file, consisting of: [Desktop Entry] Type=Application Name=Compton GenericName=A Lightweight X Compositor Categories=System;Utility;X-DesktopCompositor Icon= Exec=compton
Which now causes the error: [ 123s] ERROR: No sufficient Category definition:
/home/abuild/rpmbuild/BUILDROOT/compton-0.1.0-7.1.x86_64//usr/share/applic
ations/compton.desktop [ 123s] WARNING: Empty Icon in
/home/abuild/rpmbuild/BUILDROOT/compton-0.1.0-7.1.x86_64//usr/share/applic
ations/compton.desktop [ 123s] Errors in installed desktop file detected. Please refer to http://en.opensuse.org/SUSE_Package_Conventions/RPM_Macros [ 123s] error: Bad exit status from /var/tmp/rpm-tmp.fd64xL (%install)
I got the categories direct from:
http://en.opensuse.org/openSUSE:Packaging_desktop_menu_categories
So where in the heck am I going wrong with this desktop file?
I don't really know why but «System» doesn't work so use another one.
Yeah, i got it sorted, and edited the wiki page, removing the Invalid Category