Desktop entries are not generated from .desktop.in files in auto mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-distutils-extra (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
Binary package hint: python-
While trying to fix bug 449411 in the onboard package, I noticed that using the auto module in setup.py translatable strings are extracted from .desktop.in files correctly, but:
* .desktop files are not generated
* the built package installs .desktop.in files in /usr/share/
According to Martin on IRC:
<pitti> dpm: right, I then just noticed that the patch was already applied
dpm: it's a bit weird, if I do ./setup.py install --root=/tmp/x, the desktop.in files get installed automagically
dpm: but with a .deb build they aren't
A workaround for .desktop files not being generated is to use a setup.cfg file and explicitly listing them there. As an example, here's what the onboard setup.cfg file looks like:
[build_i18n]
desktop_files=[ ('share/
Ah, it's because it gets confused because the .desktop.in files are in data/.