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

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

 



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.

I can shave over 250ms off the gnome-software cold-start time if most
applications set "X-AppInstall-Package". I've investigated perhaps
doing this automatically using a brp script in rpm, but this fails as
it can't add a dep for desktop-file-utils (which most apps should
already have as they should be validating the .desktop file) and that
the .desktop file might not be in %{name} but some sub-package which
we don't know as the brp is done globally on the buildroot.

Ideas, comments and feedback welcome. I'd be willing to edit the 50 or
so desktop packages we have in the default install myself if we can't
find an automatic way to do this. SUSE says they want to do the same
as us if it helps.

Richard.

[1] so we can show if it's installed, available in the repos, or an
update exists for it.
-- 
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