On Sun, 14 Feb 2010 22:45:37 +0100
Richard Bos
Hi,
Op zondag 14 februari 2010 22:10:25 schreef Malcolm:
On Sun, 14 Feb 2010 22:03:54 +0100
Richard Bos
wrote: Build fails: Errors in installed desktop file detected, but I can't determine what is wrong. Hope someone can point me to the problem;
ERROR: No sufficient Category definition: /usr/src/packages/BUILDROOT/kfritz-0.0.1-2.x86_64//usr/share/applications /kde4/kfritz.desktop ERROR: Icon file not installed: /usr/src/packages/BUILDROOT/kfritz-0.0.1-2.x86_64//usr/share/applications /kde4/kfritz.desktop (internet-telephony) Errors in installed desktop file detected.
The desktop has the following contents: $ cat /usr/src/packages/BUILDROOT/kfritz-0.0.1-2.x86_64//usr/share/applications /kde4/kfritz.desktop [Desktop Entry] X-SuSE-translate=true Name=KFritz Exec=kfritz Icon=internet-telephony Type=Application GenericName=Call notificator Comment=Access call history and phone book of your Fritz!Box and get notifications on incoming and outgoing calls. Terminal=false Categories=Qt;KDE;Utility; X-KDE-StartupNotify=true
The icon is installed: $ find /usr/share/icons | grep internet-telephony /usr/share/icons/oxygen/32x32/apps/internet-telephony.png .............. /usr/share/icons/oxygen/128x128/apps/internet-telephony.png
Why does the rpm check (xdg-menu) complain about the desktop file, what's wrong with it?
Hi Have a read of this to select the correct categories; http://en.opensuse.org/SUSE_Package_Conventions/Desktop_Menu
that helped a bit! The error in categories was solved right away, but the error with the icon is still not solved in good way.
When I install the icon in /usr/share/pixmaps/kfritz.png, it passes the test. But when it is installed in /usr/share/icons/oxygen/48x48/apps/kfritz.png, the test fails. Their must be something else involved. According the wiki page the directory $XDG_DATA_DIRS/icons is searched, which in my case is set to; $ echo $XDG_DATA_DIRS /usr/share
Hi You need to install with update_desktop eg; %suse_update_desktop_file -i -n %{name} (n = no translate, remove as required) I would also run fdupes on it as well eg; %fdupes -s %{buildroot} You also need to add to build requires; update-desktop-files fdupes -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default up 6 days 16:36, 4 users, load average: 0.10, 0.11, 0.08 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.53 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org