<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>201498</bug_id>
          
          <creation_ts>2007-12-06 17:51 0000</creation_ts>
          <short_desc>make repoman run desktop-file-validate on .desktop files</short_desc>
          <delta_ts>2007-12-30 17:31:01 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Repoman</component>
          <version>2.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://dev.gentoo.org/~betelgeuse/desktop-files/baddesktop</bug_file_loc>
          
          <keywords>InSVN</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>200044</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>betelgeuse@gentoo.org</reporter>
          <assigned_to>dev-portage@gentoo.org</assigned_to>
          <cc>coldwind@gentoo.org</cc>
    
    <cc>ulm@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-12-06 17:51:49 0000</bug_when>
            <thetext>We have lots of .desktop files in files/ so we should make repoman run desktop-file-validate on them if it&apos;s installed. Perhaps add a qa use flag to pull it in. Here are the current results:
http://dev.gentoo.org/~betelgeuse/desktop-files/results.txt
The script used to create these: http://dev.gentoo.org/~betelgeuse/desktop-files/baddesktop</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2007-12-06 18:04:42 0000</bug_when>
            <thetext>Is there any significant benefit to distributing a pre-generated .desktop file vs. generating one on-the-fly using make_desktop_entry from eutils.eclass? If not, perhaps we should just have repoman complain about any .desktop files in ${FILESDIR}.

If there&apos;s something that makes make_desktop_entry() insufficient in lots of cases, maybe we can fix those shortcomings.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-12-06 18:14:52 0000</bug_when>
            <thetext>(In reply to comment #1)
&gt; Is there any significant benefit to distributing a pre-generated .desktop file
&gt; vs. generating one on-the-fly using make_desktop_entry from eutils.eclass? If
&gt; not, perhaps we should just have repoman complain about any .desktop files in
&gt; ${FILESDIR}.
&gt; 

At least translations come to mind.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ulm@gentoo.org</who>
            <bug_when>2007-12-07 00:33:47 0000</bug_when>
            <thetext>Apart from translations, &quot;make_desktop_entry&quot; supports only a small subset of the desktop entry keys mentioned in &lt;http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html&gt;.

My personal statistics is not very large, but in 3 of 3 cases I couldn&apos;t use make_desktop_entry because it was not flexible enough:
- no support for a &quot;Comment&quot; different from $DESCRIPTION (needed because the
  ebuild installs two desktop files),
- no support for &quot;MimeType&quot;, &quot;NoDisplay&quot;, and &quot;Terminal&quot; keys.

Also, in case of &quot;Exec&quot; being anything other than a simple command (i.e. if it is a full path or has arguments), the generated file has a strange name. For example, &quot;_usr_bin_emacsclient_-a__usr_bin_emacs_%F-emacs-desktop.desktop&quot;.

(In reply to comment #1)
&gt; [...] perhaps we should just have repoman complain about any .desktop files
&gt; in {FILESDIR}.

IMHO, that&apos;s not a good idea.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-12-07 06:44:49 0000</bug_when>
            <thetext>then why dont you extend the desktop creation function</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>coldwind@gentoo.org</who>
            <bug_when>2007-12-10 19:34:45 0000</bug_when>
            <thetext>make_desktop_entry (or a new function) could take as an argument the shipped .desktop, fix some fields and add the ones which are missing. It could also print an ewarn when it find an invalid category.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>betelgeuse@gentoo.org</who>
            <bug_when>2007-12-23 02:46:19 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; make_desktop_entry (or a new function) could take as an argument the shipped
&gt; .desktop, fix some fields and add the ones which are missing. It could also
&gt; print an ewarn when it find an invalid category.
&gt; 

We already have domenu.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>coldwind@gentoo.org</who>
            <bug_when>2007-12-25 14:36:42 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; make_desktop_entry (or a new function) could take as an argument the shipped
&gt; &gt; .desktop, fix some fields and add the ones which are missing. It could also
&gt; &gt; print an ewarn when it find an invalid category.
&gt; &gt; 
&gt; 
&gt; We already have domenu.
&gt; 

Fixing some fields, adding new ones or print warnings is still applicable to domenu.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zmedico@gentoo.org</who>
            <bug_when>2007-12-30 17:31:01 0000</bug_when>
            <thetext>This has been released in 2.1.4_rc12.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>