On 1 June 2015 at 10:50, Damjan Jovanovic damjan.jov@gmail.com wrote:
Not all of us install Wine through a package manager, and update-desktop-database is useful in that case. What that Makefile should probably be doing instead, is calling update-desktop-database only on the desktop directory where wine.desktop was just installed, where it will succeed without root privileges, ie.: -$(UPDATE_DESKTOP_DATABASE) $(DESTDIR)$(datadir)/applications
Thank you Damjan
That's technically more correct but even worse, because building a package (make install into a DESTDIR you will merely tarball) will result in desktop db pollution. make install really shouldn't run u-d-d at all - if you do make install and *want* to get desktop associations, you can run it after make install, separately.
J. Leclanche