[opensuse-packaging] Build fails: Errors in installed desktop file detected
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? -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Sun, 14 Feb 2010 22:03:54 +0100
Richard Bos
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 -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.42-0.1-default up 6 days 15:45, 4 users, load average: 0.19, 0.11, 0.10 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
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 -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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
On 02/15/2010 12:05 AM, Malcolm wrote:
On Sun, 14 Feb 2010 22:45:37 +0100 Richard Bos
wrote: 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
Also a good way to troubleshoot .desktop files is to unpack the source and run "/usr/bin/desktop-file-validate" on them from the command line and create a patch to fix the problems, this is what osc build runs. Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Op maandag 15 februari 2010 08:31:29 schreef Dave Plater:
Also a good way to troubleshoot .desktop files is to unpack the source and run "/usr/bin/desktop-file-validate" on them from the command line and create a patch to fix the problems, this is what osc build runs.
Tried that one, and the desktop file fails on the Category with a clear message. That was helpful. It does not complain about the icon though. -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Op zondag 14 februari 2010 23:05:46 schreef Malcolm:
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 looked at this (the source code), and it actually copies the icon the directory /usr/share/pixmaps, as I do now in the spec file. But I want the icon to be located next to the other kde applications and in /usr/share/pixmaps. -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Monday 15 of February 2010, Richard Bos wrote:
Op zondag 14 februari 2010 23:05:46 schreef Malcolm:
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 looked at this (the source code), and it actually copies the icon the directory /usr/share/pixmaps, as I do now in the spec file. But I want the icon to be located next to the other kde applications and in /usr/share/pixmaps.
/usr/share/pixmaps is an obsolete location, please use the hicolor icon theme as already said. -- Lubos Lunak openSUSE Boosters team, KDE developer l.lunak@suse.cz , l.lunak@kde.org -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Op maandag 15 februari 2010 14:39:20 schreef Lubos Lunak:
I looked at this (the source code), and it actually copies the icon the directory /usr/share/pixmaps, as I do now in the spec file. But I want the icon to be located next to the other kde applications and in /usr/share/pixmaps.
/usr/share/pixmaps is an obsolete location, please use the hicolor icon theme as already said.
Thanks that solved it! -- Richard -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Sonntag, 14. Februar 2010 22:03:54 schrieb Richard Bos:
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?
oxygen is no default fallback path. Non-KDE desktops or KDE with manual selected icon theme will not find the icon there. use the "hicolor" path instead. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (5)
-
Adrian Schröter
-
Dave Plater
-
Lubos Lunak
-
Malcolm
-
Richard Bos