Hi, my pre-reviewer [1] noted that I didn't run desktop-file-install on a .desktop file I am installing. However, the app isn't actually a gui app, therefore the must rule doesn't apply.
What the .desktop file does achieve is adding an "extract tnef archive" menu item to files where the mime-type matches tnef. The unwanted sideeffect of doing this is that gnome places an icon for the program into the Application menu. This icon is useless; it runs a script to run the app, without an input parameter, and hence does nothing (well, that 'nothing' might need to be double checked).
Is it acceptable to add a desktop file to achieve this ? Is there someway to indicate to the desktop program that the menu entry shouldn't be shown ? Does using desktop-file-x any use on .desktop files that aren't intended to become part of the menus ?
DaveT.
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 ?
DaveT.
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
packaging@lists.fedoraproject.org