Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512074 - LXQt packages: package installs one or more .desktop files that do not pass validation
Summary: LXQt packages: package installs one or more .desktop files that do not pass v...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords: UPSTREAM
: 599682 739840 739842 739844 739846 739868 751166 (view as bug list)
Depends on:
Blocks: .desktop
  Show dependency tree
 
Reported: 2014-06-01 19:21 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2021-11-06 16:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2014-06-01 19:21:56 UTC
I was just trying out lxqt and saw this message:

 * QA Notice: This package installs one or more .desktop files that do not
 * pass validation.
 * 
 *      /usr/share/applications/lxqt-config-session.desktop: error: value "LXQt;" for key "OnlyShowIn" in group "Desktop Entry" contains an unregistered value "LXQt"; values extending the format should start with "X-"
 *      /usr/share/applications/lxqt-config-session.desktop: error: value "Settings;DesktopSettings;Qt;LXQt;" for key "Categories" in group "Desktop Entry" contains an unregistered value "LXQt"; values extending the format should start with "X-"
 * 

Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.20-gentoo x86_64)
=================================================================
System uname: Linux-3.12.20-gentoo-x86_64-QEMU_Virtual_CPU_version_1.5.3-with-gentoo-2.2
KiB Mem:     2053120 total,    896004 free
KiB Swap:    2097148 total,   2093408 free
Timestamp of tree: Sun, 01 Jun 2014 04:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"                                                                                                                                                                                                                                                                                                              
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                                                                                                                              
MAKEOPTS="-j3"                                                                                                                                                                                                                                                                                                                 
PKGDIR="/usr/portage/packages"                                                                                                                                                                                                                                                                                                 
PORTAGE_CONFIGROOT="/"                                                                                                                                                                                                                                                                                                         
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                               
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                                                                                                                                                                                      
PORTDIR="/usr/portage"                                                                                                                                                                                                                                                                                                         
PORTDIR_OVERLAY=""                                                                                                                                                                                                                                                                                                             
SYNC="rsync://tunafix/gentoo-portage"                                                                                                                                                                                                                                                                                          
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="qxl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"                                                                               
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-06-02 17:43:03 UTC
That's the problem with dev-util/desktop-file-utils. Reported upstream.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2014-06-02 17:46:10 UTC
The spec needs updating first - the tool is just complying with it. See http://standards.freedesktop.org/menu-spec/latest/apb.html
Comment 3 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-06-02 17:47:25 UTC
Thanks, will see, where to report the need to fix specs.
Comment 4 Jauhien Piatlicki (RETIRED) gentoo-dev 2014-06-02 17:51:56 UTC
(In reply to Michael Palimaka (kensington) from comment #2)
> The spec needs updating first - the tool is just complying with it. See
> http://standards.freedesktop.org/menu-spec/latest/apb.html

Reported
Comment 5 Coacher 2016-11-13 21:31:44 UTC
*** Bug 599682 has been marked as a duplicate of this bug. ***
Comment 6 stqn 2016-11-25 19:01:22 UTC
The spec has since been updated to add LXQt to the list of DEs.

desktop-file-utils 0.23 (current stable and only available version in portage) contains the fix, and desktop-file-validate doesn’t report any problem with the "OnlyShowIn" value anymore.

However, the "LXQt" category is still reported as an error:

$ desktop-file-validate /usr/share/applications/lxqt-config-session.desktop 
lxqt-config-session.desktop: error: value "Settings;DesktopSettings;Qt;LXQt;" for key "Categories" in group "Desktop Entry" contains an unregistered value "LXQt"; values extending the format should start with "X-"
lxqt-config-session.desktop: warning: value "Ustawienia sesji LXQt" for key "Comment[pl]" in group "Desktop Entry" looks redundant with value "Ustawienia sesji LXQt" of key "Name[pl]"
lxqt-config-session.desktop: warning: value "Nastavenie rel?cie prostredia LXQt" for key "Comment[sk]" in group "Desktop Entry" looks redundant with value "Nastavenie rel?cie prostredia LXQt" of key "GenericName[sk]"
Comment 7 Chiitoo gentoo-dev 2020-11-24 15:53:28 UTC
*** Bug 751166 has been marked as a duplicate of this bug. ***
Comment 8 Chiitoo gentoo-dev 2020-11-24 15:54:00 UTC
*** Bug 739868 has been marked as a duplicate of this bug. ***
Comment 9 Chiitoo gentoo-dev 2020-11-24 15:54:07 UTC
*** Bug 739846 has been marked as a duplicate of this bug. ***
Comment 10 Chiitoo gentoo-dev 2020-11-24 15:54:15 UTC
*** Bug 739842 has been marked as a duplicate of this bug. ***
Comment 11 Chiitoo gentoo-dev 2020-11-24 15:54:24 UTC
*** Bug 739840 has been marked as a duplicate of this bug. ***
Comment 12 Chiitoo gentoo-dev 2020-11-24 15:54:53 UTC
*** Bug 739844 has been marked as a duplicate of this bug. ***
Comment 13 Bernd 2021-07-04 10:54:29 UTC
From my understanding of the spec, the desktop environment should not belong into the Categories key. The LXQt value has been added to the OnlyShownIn string array show_in_registered in src/validate.c, but it's not in the registered_categories array in the same file.
The latter array contains values like KDE, GNOME and XFCE, which are also part of show_in_registered, but none of the other values listed in the string array.
I'd say, that LXQt should be removed from any Categories key and only added to the OnlyShownIn key.
Comment 14 Adel KARA SLIMANE 2021-11-06 15:21:45 UTC
Looking at the spec, GNOME can belong to the `Categories` entry [1], this means that LXQt should also be authorized to be added there. 

How do we update this ?

[1] https://specifications.freedesktop.org/menu-spec/latest/ar01s03.html
Comment 15 Adel KARA SLIMANE 2021-11-06 16:43:34 UTC
Okay, it seems LXQt is not part of the official keywords [1] and reported to upstream about it [2]

[1] https://specifications.freedesktop.org/menu-spec/latest/apas02.html
[2] https://github.com/lxqt/lxqt/issues/2113