After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 769984 - gupnp-tools 0.8.12 installs 'broken' .desktop files
gupnp-tools 0.8.12 installs 'broken' .desktop files
Status: RESOLVED FIXED
Product: gupnp-tools
Classification: Other
Component: General
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-16 13:38 UTC by Dominique Leuenberger
Modified: 2019-02-22 05:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2016-08-16 13:38:28 UTC
gupnp-tools 0.8.12 uses @PKGDATADIR@ inside the .desktop.in.in file, but those files are not handled by configure as config files and there is o logic to replace @PKGDATADIR@ in those files.

Besides that: The icons should not be installed to obscure directories, as tools like appstream-builder and flatpak builder will not extract icons from /usr/share/icons in order to produce meta-data - further to that, the icon should be listed without extension (and I doubt there is need to 'translate' the icon entry in the .desktop file)
Comment 1 Jens Georg 2016-08-17 15:02:41 UTC
(In reply to Dominique Leuenberger from comment #0)
> gupnp-tools 0.8.12 uses @PKGDATADIR@ inside the .desktop.in.in file, but
> those files are not handled by configure as config files and there is o
> logic to replace @PKGDATADIR@ in those files.
> 
> Besides that: The icons should not be installed to obscure directories, as
> tools like appstream-builder and flatpak builder will not extract icons from
> /usr/share/icons in order to produce meta-data - further to that, the icon
> should be listed without extension

Either the icon is in the proper icon dir and then it takes the icon name as you suggest or it takes the full path :)

> (and I doubt there is need to 'translate'> the icon entry in the .desktop file)

A translator comment for this was added recently

@PKGDATADIR@ think Fixed on master with c63983ea50b8c224787e9dc1e670d2e2104fbf7d.
Comment 2 Zeeshan Ali 2016-08-18 09:54:04 UTC
(In reply to Jens Georg from comment #1)
> (In reply to Dominique Leuenberger from comment #0)
> >
> > (and I doubt there is need to 'translate'> the icon entry in the .desktop file)
> 
> A translator comment for this was added recently
> 
> @PKGDATADIR@ think Fixed on master with

Did you mean to write "I think @PKGDATADIR@ was fixed in master with"?
Comment 3 Jens Georg 2016-08-18 10:36:37 UTC
> > @PKGDATADIR@ think Fixed on master with
> 
> Did you mean to write "I think @PKGDATADIR@ was fixed in master with"?

Er. Yes :)
Comment 4 Zeeshan Ali 2016-08-18 13:29:21 UTC
(In reply to Jens Georg from comment #3)
> > > @PKGDATADIR@ think Fixed on master with
> > 
> > Did you mean to write "I think @PKGDATADIR@ was fixed in master with"?
> 
> Er. Yes :)

Good. :) Would feel really good if you update the comment for me.
Comment 5 Andreas Henriksson 2016-10-23 20:26:39 UTC
I've cherry-picked the mentioned commit and can confirm it fixes the problem.