.desktop file translation error

Hi,

I have been working with the Factory repo recently, and I notice that many
of my packages give this error:

ERROR: translation is neither enabled nor disabled for this file:

It could be one of many .desktop files. How do I correct this?

Also, is there documentation on many of the errors that the build service
may give?

Thanks,
g

Packaging/SUSE Package Conventions/RPM Macros - openSUSE

I tried
%suse_update_desktop_file %name

but then I get


Writing /var/tmp/bleachbit-0.1.0-7.1-root-abuild/usr/local/lib64/python2.6/site-packages/bleachbit-0.1.0-py2.6.egg-info
+ %suse_update_desktop_file bleachbit
/var/tmp/rpm-tmp.95377: line 26: fg: no job control
error: Bad exit status from /var/tmp/rpm-tmp.95377 (%install)


RPM build errors:
cannot open Pubkeys index using db3 - No such file or directory (2)
Bad exit status from /var/tmp/rpm-tmp.95377 (%install)
System halted.

I have exactly the same problem and I’m sure there is nothing wrong with the translation.
My desktop file looks like this:


[Desktop Entry]  
Name=FreeSSM  
GenericName=Diagnostic and adjustment tool for SUBARU-vehicles  
GenericName[de]=Diagnose- und Adaptions-Tool für SUBARU-Fahrzeuge  
Exec=/opt/freessm/%{name}  
Icon=/opt/freessm/FreeSSM.png  
Terminal=0  
Type=Application  
Categories=Application;Utility;

No problem with builds for openSUSE 11.0, Mandriva 2009, Fedora 10, xUbuntu 8.10.
I have also no problems with local builds on my own 11.1-machine.
Any ideas ?

I solved it, but I don’t recall how. Check my .spec file for the opensuse-specific sections.

https://build.opensuse.org/package/show?package=bleachbit&project=home%3Aandrew_z

your code:

%if 0%{?suse_version}  
%suse_update_desktop_file %{name}  
%endif  

is what did it.

Although, I now have a package with multiple desktop files which is throwing a different error.

g

%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif

Try that