[Fedora-packaging] packaging a command line app to have action / servicemenu in filemanagers
Matthias Clasen
mclasen at redhat.com
Wed Sep 30 16:33:52 UTC 2009
On Thu, 2009-10-01 at 00:05 +1000, David Timms wrote:
> On 09/30/2009 11:40 PM, Rex Dieter wrote:
> >> Is there someway to indicate to the desktop program that the menu
> >> entry shouldn't be shown ?
> >
> > add to the .desktop file, the key:
> > NoDisplay=true
> Thanks Rex,
>
> Any opinions on the other items - like running desktop file install
> (which fails):
> + mkdir -p
> /home/davidt/rpmbuild/BUILDROOT/tnef-1.4.6-3.fc11.i386//usr/share/mimelnk/application/
> + desktop-file-install
> --dir=/home/davidt/rpmbuild/BUILDROOT/tnef-1.4.6-3.fc11.i386/usr/share/mimelnk/applications
> /home/davidt/rpmbuild/SOURCES/vnd.ms-tnef.desktop
> /home/davidt/rpmbuild/BUILDROOT/tnef-1.4.6-3.fc11.i386/usr/share/mimelnk/applications/vnd.ms-tnef.desktop:
> error: key "MimeType" is present in group "Desktop Entry", but the type
> is "MimeType" while this key is only valid for type "Application"
> /home/davidt/rpmbuild/BUILDROOT/tnef-1.4.6-3.fc11.i386/usr/share/mimelnk/applications/vnd.ms-tnef.desktop:
> error: key "Exec" is present in group "Desktop Entry", but the type is
> "MimeType" while this key is only valid for type "Application"
> Error on file "/home/davidt/rpmbuild/SOURCES/vnd.ms-tnef.desktop":
> Failed to validate the created desktop file
> error: Bad exit status from /var/tmp/rpm-tmp.s0UHb2 (%install)
>
> Am I doing it all wrong, or is the validator not versed in this type of
> .desktop file ?
>
Your desktop file is not valid. If it is for an application, it needs to
have
Type=Application
More information about the Fedora-packaging
mailing list