Re: Adding X-AppInstall-Package to all applications at rpm build time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Hughes (hughsient@xxxxxxxxx) said: 
> What would people think about doing this in #fedora.spec files?
> 
> # make the software center load faster
> desktop-file-edit %{buildroot}%{_datadir}/applications/*.desktop \
>     --set-key=X-AppInstall-Package --set-value=%{name}
> 
> It makes the software center load much faster as we don't have to
> lookup what package owns the desktop file[1] before we can show the
> UI. "X-AppInstall-Package" is an extension that Ubuntu has been using
> for nearly a decade.

It seems a reasonable enough optimization, although you'd obviously still
need to the fallback to querying the database.

Bill
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux